diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_engine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp index a6438eca4..313086f57 100644 --- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -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; |