summaryrefslogtreecommitdiff
path: root/spritecache.c
diff options
context:
space:
mode:
Diffstat (limited to 'spritecache.c')
-rw-r--r--spritecache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/spritecache.c b/spritecache.c
index 125b1e906..b9310e02e 100644
--- a/spritecache.c
+++ b/spritecache.c
@@ -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);
}
}