- fixed a few issues pointed out by the assert in the TArray [] operator.

This commit is contained in:
Christoph Oelckers 2020-04-11 12:39:50 +02:00
commit d00ad60437
4 changed files with 18 additions and 3 deletions

View file

@ -709,7 +709,7 @@ void MapLoader::InitRenderInfo()
PrepareSectorData();
InitVertexData();
FloodSectorStacks();
TArray<int> checkmap(Level->vertexes.Size());
TArray<int> checkmap(Level->vertexes.Size(), true);
memset(checkmap.Data(), -1, sizeof(int)*Level->vertexes.Size());
for(auto &sec : Level->sectors)
{