aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGround.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-08 17:23:57 -0500
committermegamage <none@none>2009-04-08 17:23:57 -0500
commita7e04a252fc04988dea2072241ad8825db747e58 (patch)
tree686c5bc61de1ca0f01fafe4ec77f26c51f55fc6a /src/game/BattleGround.cpp
parent0c2dd85c2c79dbeca289b8d420e573efe41cbc0b (diff)
*Add unit to notify when unit is add to world (including load grid case).
*Add some check in remove object function. --HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r--src/game/BattleGround.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
index 6849a9ca90c..2538bd3434e 100644
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -1216,7 +1216,7 @@ bool BattleGround::AddObject(uint32 type, uint32 entry, float x, float y, float
data.go_state = 1;
*/
// add to world, so it can be later looked up from HashMapHolder
- go->AddToWorld();
+ map->Add(go);
m_BgObjects[type] = go->GetGUID();
return true;
}