Explorar o código

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

Image %!s(int64=2) %!d(string=hai) anos
pai
achega
26082b8264
Modificáronse 1 ficheiros con 1 adicións e 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());