mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
*Fix sniper training - by Astellar.
*Correct GO delete call in Gameobject::Update. --HG-- branch : trunk
This commit is contained in:
@@ -432,10 +432,11 @@ void GameObject::Update(uint32 /*p_time*/)
|
||||
if(GetOwnerGUID())
|
||||
{
|
||||
if(Unit* owner = GetOwner())
|
||||
{
|
||||
owner->RemoveGameObject(this, false);
|
||||
|
||||
SetRespawnTime(0);
|
||||
Delete();
|
||||
SetRespawnTime(0);
|
||||
Delete();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user