Commit b265b855 authored by Dino Bollinger's avatar Dino Bollinger
Browse files

Fix a regression that could lead to crashes with per-map tiles

parent dd8c088f
......@@ -68,7 +68,7 @@ template <typename origar_t, typename bakar_t>
static inline void RESTORE_MAPART_ARRAY(origar_t & origar, bakar_t & bakar)
EDUKE32_STATIC_ASSERT(sizeof(origar[0]) == sizeof(bakar[0]));
for (bssize_t i=0; i<MAXTILES; i++)
for (size_t i=0; i < ARRAY_SIZE(origar); i++)
if (tilefilenum[i] >= MAXARTFILES_BASE)
origar[i] = bakar[i];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment