[8574] Use map pointer in BattleGround for faster access

this avoids the HashMapHolder usage when searching
for objects
This commit is contained in:
XTZGZoReX 2009-09-30 18:15:28 +02:00 committed by balrok
parent 9ee41092df
commit c5a22f775b
7 changed files with 33 additions and 24 deletions

View file

@ -150,7 +150,7 @@ void BattleGroundWS::RespawnFlagAfterDrop(uint32 team)
PlaySoundToAll(BG_WS_SOUND_FLAGS_RESPAWNED);
GameObject *obj = HashMapHolder<GameObject>::Find(GetDroppedFlagGUID(team));
GameObject *obj = GetBgMap()->GetGameObject(GetDroppedFlagGUID(team));
if (obj)
obj->Delete();
else