*Fix sniper training - by Astellar.
*Correct GO delete call in Gameobject::Update. --HG-- branch : trunk
This commit is contained in:
1 parent
2750d95a5d
commit
04a39ce6df
2 files changed
+35
-12
No files matched your search
@@ -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