mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r2349) - Fix: remove warning from release build when assertions are no longer active
This commit is contained in:
parent
cdb81c660c
commit
1b2b0d5b79
|
@ -368,8 +368,12 @@ static void LoadGrfIndexed(const char *filename, const uint16 *index_tbl, int fi
|
||||||
SkipSprites(end);
|
SkipSprites(end);
|
||||||
} else { // load sprites and use indexes from start to end
|
} else { // load sprites and use indexes from start to end
|
||||||
do {
|
do {
|
||||||
|
#ifdef NDEBUG
|
||||||
|
LoadNextSprite(start, file_index);
|
||||||
|
#else
|
||||||
bool b = LoadNextSprite(start, file_index);
|
bool b = LoadNextSprite(start, file_index);
|
||||||
assert(b);
|
assert(b);
|
||||||
|
#endif
|
||||||
} while (++start <= end);
|
} while (++start <= end);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue