- made wall a TArray.

This commit is contained in:
Christoph Oelckers 2021-11-20 23:42:01 +01:00
parent fded90c491
commit 8cca55c24a
11 changed files with 14 additions and 25 deletions

View file

@ -66,8 +66,7 @@
TArray<sectortype> sectorbackup;
//TArray<walltype> wallbackup;
walltype wallbackup[MAXWALLS];
TArray<walltype> wallbackup;
void WriteSavePic(FileWriter* file, int width, int height);
bool WriteZip(const char* filename, TArray<FString>& filenames, TArray<FCompressedBuffer>& content);
@ -692,7 +691,7 @@ void SerializeMap(FSerializer& arc)
("numsectors", numsectors)
("sectors", sector, sectorbackup)
("numwalls", numwalls)
.Array("walls", wall, wallbackup, numwalls)
("walls", wall, wallbackup)
.Array("headspritestat", headspritestat, MAXSTATUS + 1)
.Array("nextspritestat", nextspritestat, MAXSPRITES)
.Array("prevspritestat", prevspritestat, MAXSPRITES)