mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
[8574] Use map pointer in BattleGround for faster access
this avoids the HashMapHolder usage when searching for objects
This commit is contained in:
parent
9ee41092df
commit
c5a22f775b
7 changed files with 33 additions and 24 deletions
|
|
@ -218,6 +218,7 @@ BattleGroundMap* MapInstanced::CreateBattleGroundMap(uint32 InstanceId, BattleGr
|
|||
BattleGroundMap *map = new BattleGroundMap(GetId(), GetGridExpiry(), InstanceId, this);
|
||||
ASSERT(map->IsBattleGroundOrArena());
|
||||
map->SetBG(bg);
|
||||
bg->SetBgMap(map);
|
||||
|
||||
m_InstancedMaps[InstanceId] = map;
|
||||
return map;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue