mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-15 02:29:10 +00:00
Fix: Compile warnings when asserts are disabled
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user