(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 4623846515
commit 69ebefe1ac
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);
}