Browse Source

Fix a crash on zone startup if the EQ2Map isn't present

Image 1 year ago
parent
commit
3f751b18f0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      EQ2/source/WorldServer/zoneserver.cpp

+ 3 - 0
EQ2/source/WorldServer/zoneserver.cpp

@@ -1318,7 +1318,10 @@ bool ZoneServer::Process()
 			}
 
 			if (zonemap != nullptr && Grid != nullptr && !zonemap->IsMapLoaded())
+			{
 				delete Grid;
+				Grid = nullptr;
+			}
 
 			DeleteTransporters();
 			ReloadTransporters();