summaryrefslogtreecommitdiff
path: root/src/blitter
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-12-09 21:20:21 +0000
committerglx <glx@openttd.org>2007-12-09 21:20:21 +0000
commit6a83f9141bfc04e66d66fa02fa0f5f74d18fe38a (patch)
tree9ac65ac4e5c5a30d1b8d89d7aa2e84d745e5abe7 /src/blitter
parent46c0edc80be8215f49cce21874f8dbd2d86d7ffd (diff)
downloadopenttd-6a83f9141bfc04e66d66fa02fa0f5f74d18fe38a.tar.xz
(svn r11611) -Codechange: it is now possible to use a define to enable asserts and show them in crash.log for MSVC release builds
Diffstat (limited to 'src/blitter')
-rw-r--r--src/blitter/factory.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blitter/factory.hpp b/src/blitter/factory.hpp
index 494925613..8bb232e28 100644
--- a/src/blitter/factory.hpp
+++ b/src/blitter/factory.hpp
@@ -41,7 +41,7 @@ protected:
if (name == NULL) return;
this->name = strdup(name);
-#if !defined(NDEBUG)
+#if !defined(NDEBUG) || defined(WITH_ASSERT)
/* NDEBUG disables asserts and gives a warning: unused variable 'P' */
std::pair<Blitters::iterator, bool> P =
#endif /* !NDEBUG */