aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-12 13:38:38 +0200
committerQAston <none@none>2009-07-12 13:38:38 +0200
commit04a39ce6df016223ca44683c71cfc83d70ca6ab8 (patch)
tree02b2c803ecb2a3d6f9066511f37bbac3ef12fc42 /src/game/GameObject.cpp
parent2750d95a5d644a6d1a7b30001f69c80007e4cfd5 (diff)
*Fix sniper training - by Astellar.
*Correct GO delete call in Gameobject::Update. --HG-- branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r--src/game/GameObject.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index 59ca3dd26cf..6e603346020 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -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;
}