From 75a87a7266b7ef839f0c9e4b95287a5629581e84 Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 6 May 2008 23:45:25 +0000 Subject: (svn r12982) -Fix: compiler warning when compiling without asserts --- src/newgrf_engine.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3-70-g09d2