Skip to content

Commit

Permalink
Dynguid: Fix respawning when respawndelay is set
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Sep 15, 2021
1 parent e9bd956 commit d81ef4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Maps/SpawnManager.cpp
Expand Up @@ -70,7 +70,7 @@ void SpawnManager::RespawnCreature(uint32 dbguid, uint32 respawnDelay)
}
if (!found)
AddCreature(respawnDelay, dbguid);
else
else if (respawnDelay == 0)
(*itr).ConstructForMap(m_map);
if (respawnDelay > 0)
std::sort(m_spawns.begin(), m_spawns.end());
Expand All @@ -95,7 +95,7 @@ void SpawnManager::RespawnGameObject(uint32 dbguid, uint32 respawnDelay)
}
if (!found)
AddGameObject(respawnDelay, dbguid);
else
else if (respawnDelay == 0)
(*itr).ConstructForMap(m_map);
if (respawnDelay > 0)
std::sort(m_spawns.begin(), m_spawns.end());
Expand Down

0 comments on commit d81ef4f

Please sign in to comment.