- 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

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