diff options
author | smatz <smatz@openttd.org> | 2008-05-06 23:45:25 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-05-06 23:45:25 +0000 |
commit | 93861e78a3ce7a2cb20aca0eb5684068eaeec92f (patch) | |
tree | cf72cbf8ce89d193a55c1c59648168fa2a8c0984 | |
parent | 3ba47883c03ed4736afa02771ba0883201e82199 (diff) | |
download | openttd-93861e78a3ce7a2cb20aca0eb5684068eaeec92f.tar.xz |
(svn r12982) -Fix: compiler warning when compiling without asserts
-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; |