*Fix sniper training - by Astellar.

*Correct GO delete call in Gameobject::Update.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-12 13:38:38 +02:00
parent 2750d95a5d
commit 04a39ce6df
2 changed files with 35 additions and 12 deletions

View File

@@ -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;
}