diff options
author | QAston <none@none> | 2009-07-12 13:38:38 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-12 13:38:38 +0200 |
commit | 04a39ce6df016223ca44683c71cfc83d70ca6ab8 (patch) | |
tree | 02b2c803ecb2a3d6f9066511f37bbac3ef12fc42 /src/game/GameObject.cpp | |
parent | 2750d95a5d644a6d1a7b30001f69c80007e4cfd5 (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.cpp | 7 |
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; } |