- fixed crash on loading map in Hexen format without any nodes

This commit is contained in:
alexey.lysiuk 2019-06-09 12:57:57 +03:00
parent d27a7cd84b
commit 4a8438ebb4
1 changed files with 5 additions and 0 deletions

View File

@ -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);