1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 10:22:39 +01:00

Fix: Compile warnings when asserts are disabled

This commit is contained in:
Charles Pigott
2020-09-25 12:22:48 +01:00
parent ad47ebc1a8
commit cfa1b1e006
3 changed files with 4 additions and 0 deletions

View File

@@ -105,6 +105,7 @@ static void LoadGrfFileIndexed(const char *filename, const SpriteID *index_tbl,
do {
bool b = LoadNextSprite(start, file_index, sprite_id, container_ver);
(void)b; // Unused without asserts
assert(b);
sprite_id++;
} while (++start <= end);