Core/GameObject: Remove summoned gobs properly from the map without effecting other cases

Ref 0e8e3828f4
Ref #23115

(cherry picked from commit 9db64666dc)

# Conflicts:
#	src/server/game/Entities/GameObject/GameObject.cpp
This commit is contained in:
Killyana
2019-04-24 20:08:07 +02:00
committed by Ovahlord
parent 00a2de63ad
commit b7f63b29a0

View File

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