(svn r12982) -Fix: compiler warning when compiling without asserts

This commit is contained in:
smatz 2008-05-06 23:45:25 +00:00
parent a9d263c459
commit 75a87a7266

View File

@ -886,7 +886,10 @@ SpriteID GetCustomEngineSprite(EngineID engine, const Vehicle *v, Direction dire
SpriteID GetRotorOverrideSprite(EngineID engine, const Vehicle *v, bool info_view)
{
#if !defined(NDEBUG) || defined(WITH_ASSERT)
const Engine *e = GetEngine(engine);
#endif /* !defined(NDEBUG) || defined(WITH_ASSERT) */
const SpriteGroup *group;
ResolverObject object;