Ver Fonte

Check if spawns are to be deleted, don't add them to the grid

Emagi há 1 ano atrás
pai
commit
34018d9a5e
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      EQ2/source/WorldServer/zoneserver.cpp

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

@@ -8503,7 +8503,7 @@ void ZoneServer::ProcessPendingSpawns() {
 }
 
 void ZoneServer::AddSpawnToGrid(Spawn* spawn, int32 grid_id) {
-	if(spawn->GetID() == 0)
+	if(spawn->GetID() == 0 || spawn->IsDeletedSpawn())
 		return;
 	
     MGridMaps.lock_shared();