mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 21:41:03 +00:00
- fixed crash on loading map in Hexen format without any nodes
This commit is contained in:
parent
d27a7cd84b
commit
4a8438ebb4
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)
|
static bool P_CheckV4Nodes(MapData *map)
|
||||||
{
|
{
|
||||||
|
if (map->Size(ML_NODES) == 0)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
char header[8];
|
char header[8];
|
||||||
|
|
||||||
map->Read(ML_NODES, header, 8);
|
map->Read(ML_NODES, header, 8);
|
||||||
|
|
Loading…
Reference in a new issue