Explorar el Código

fix crash on zone due to ghost_map (was due to the last min addition of the follow fix lol)

Image hace 2 años
padre
commit
26082b8264
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      EQ2/source/WorldServer/zoneserver.cpp

+ 1 - 1
EQ2/source/WorldServer/zoneserver.cpp

@@ -3733,7 +3733,7 @@ Spawn* ZoneServer::GetSpawnByID(int32 id, bool spawnListLocked) {
 
 bool ZoneServer::SendRemoveSpawn(Client* client, Spawn* spawn, PacketStruct* packet, bool delete_spawn)
 {
-	if(!client || !spawn)
+	if(!client || !spawn || (client && client->GetPlayer() == spawn))
 		return false;
 
 	spawn->RemoveSpawnFromPlayer(client->GetPlayer());