Core/GameObject: Delete summoned gobs and DestroyForNearbyPlayers gobs spawned with negative spawn time once the gob is deactivated

(cherry picked from commit 0e8e3828f4)
This commit is contained in:
Killyana
2019-04-23 16:43:49 +02:00
committed by Ovahlord
parent ee69943717
commit 00a2de63ad

View File

@@ -693,10 +693,17 @@ void GameObject::Update(uint32 diff)
if (!m_respawnDelayTime)
return;
if (!m_spawnId)
{
m_respawnTime = 0;
Delete();
return;
}
if (!m_spawnedByDefault)
{
m_respawnTime = 0;
Delete();
DestroyForNearbyPlayers();
return;
}