Sfoglia il codice sorgente

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

Image 4 anni fa
parent
commit
3f751b18f0
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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();