From a7e04a252fc04988dea2072241ad8825db747e58 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 8 Apr 2009 17:23:57 -0500 Subject: *Add unit to notify when unit is add to world (including load grid case). *Add some check in remove object function. --HG-- branch : trunk --- src/game/BattleGround.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/BattleGround.cpp') 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; } -- cgit v1.2.3