aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-25 15:54:23 -0600
committermegamage <none@none>2009-03-25 15:54:23 -0600
commit581ae2719d1639d063a812901ff4b0983169cde7 (patch)
tree77db4a465848205ee497a140a1b1c4efa0c47db4 /src/game/Unit.cpp
parent435570903a8eee6e9d81dd3e871aace1eb3cd73e (diff)
*Do not allow to add/remove obj to/from world more than once.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index ac6881a4356..4e400c509c8 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -11268,9 +11268,8 @@ void Unit::RemoveFromWorld()
RemoveCharmAuras();
RemoveBindSightAuras();
RemoveNotOwnSingleTargetAuras();
+ WorldObject::RemoveFromWorld();
}
-
- WorldObject::RemoveFromWorld();
}
void Unit::CleanupsBeforeDelete()