Browse Source

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

Image 2 years ago
parent
commit
26082b8264
1 changed files with 1 additions and 1 deletions
  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());