Skip to content

Commit

Permalink
- fixed crash on loading map in Hexen format without any nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jun 9, 2019
1 parent d27a7cd commit 4a8438e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/maploader/maploader.cpp
Expand Up @@ -767,6 +767,11 @@ bool MapLoader::LoadExtendedNodes (FileReader &dalump, uint32_t id)

static bool P_CheckV4Nodes(MapData *map)
{
if (map->Size(ML_NODES) == 0)
{
return false;
}

char header[8];

map->Read(ML_NODES, header, 8);
Expand Down

0 comments on commit 4a8438e

Please sign in to comment.