diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-18 12:53:37 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-18 12:53:37 +0000 |
commit | 1b2b0d5b799bace1ddc7875003cea77c2e61b2d7 (patch) | |
tree | 8263059ddd854ac1551fd2c37951262ea59d2962 | |
parent | cdb81c660c88dd3e4d6f57495734e32ae08556d4 (diff) | |
download | openttd-1b2b0d5b799bace1ddc7875003cea77c2e61b2d7.tar.xz |
(svn r2349) - Fix: remove warning from release build when assertions are no longer active
-rw-r--r-- | spritecache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spritecache.c b/spritecache.c index 125b1e906..b9310e02e 100644 --- a/spritecache.c +++ b/spritecache.c @@ -368,8 +368,12 @@ static void LoadGrfIndexed(const char *filename, const uint16 *index_tbl, int fi SkipSprites(end); } else { // load sprites and use indexes from start to end do { + #ifdef NDEBUG + LoadNextSprite(start, file_index); + #else bool b = LoadNextSprite(start, file_index); assert(b); + #endif } while (++start <= end); } } |