Ver Fonte

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

Image há 4 anos atrás
pai
commit
3f751b18f0
1 ficheiros alterados com 3 adições e 0 exclusões
  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();