1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 07:59:09 +00:00

(svn r13351) -Codechange: disable warnings about unused variable for builds without asserts

This commit is contained in:
smatz
2008-06-01 15:08:14 +00:00
parent 10d6f6c5b8
commit ed462507b2
6 changed files with 12 additions and 27 deletions

View File

@@ -71,12 +71,8 @@ void LoadSpritesIndexed(int file_index, uint *sprite_id, const SpriteID *index_t
uint end = *index_tbl++;
do {
#ifdef NDEBUG
LoadNextSprite(start, file_index, *sprite_id);
#else
bool b = LoadNextSprite(start, file_index, *sprite_id);
assert(b);
#endif
(*sprite_id)++;
} while (++start <= end);
}