mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
- fixed crash on loading map in Hexen format without any nodes
This commit is contained in:
parent
ca90516238
commit
b69260c368
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue