From 10c6fde8d681682a740d7b84f6da626637f7c8fd Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 11 Dec 2021 12:51:07 +0100 Subject: [PATCH] - reordered the init calls in engineLoadBoard. sprite lists must be done after preparing the arrays, otherwise important bits get overwritten. --- source/core/maploader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/maploader.cpp b/source/core/maploader.cpp index c7b8306f6..485d1b833 100644 --- a/source/core/maploader.cpp +++ b/source/core/maploader.cpp @@ -435,8 +435,8 @@ void engineLoadBoard(const char* filename, int flags, vec3_t* pos, int16_t* ang, auto spritepos = fr.Tell(); // Now that we know the map's size, set up the globals. - initspritelists(); // may not be used in Blood! allocateMapArrays(numsprites); + initspritelists(); // may not be used in Blood! // Now load the actual data. fr.Seek(sectorpos, FileReader::SeekSet);