mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-19 14:29:33 -04: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