(svn r2349) - Fix: remove warning from release build when assertions are no longer active

This commit is contained in:
Darkvater 2005-05-18 12:53:37 +00:00
parent cdb81c660c
commit 1b2b0d5b79
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}
}