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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user