summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-06 23:45:25 +0000
committersmatz <smatz@openttd.org>2008-05-06 23:45:25 +0000
commit75a87a7266b7ef839f0c9e4b95287a5629581e84 (patch)
treecf72cbf8ce89d193a55c1c59648168fa2a8c0984
parenta9d263c459a05cd9ce6bca015f1db3f2b54a26e7 (diff)
downloadopenttd-75a87a7266b7ef839f0c9e4b95287a5629581e84.tar.xz
(svn r12982) -Fix: compiler warning when compiling without asserts
-rw-r--r--src/newgrf_engine.cpp3
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;