mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +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
|
|
@ -1620,7 +1620,7 @@ uint32 BattleGroundMgr::CreateBattleGround(BattleGroundTypeId bgTypeId, bool IsA
|
|||
case BATTLEGROUND_SA: bg = new BattleGroundSA; break;
|
||||
case BATTLEGROUND_DS: bg = new BattleGroundDS; break;
|
||||
case BATTLEGROUND_RV: bg = new BattleGroundRV; break;
|
||||
default:bg = new BattleGround; break; // placeholder for non implemented BG
|
||||
default: bg = new BattleGround; break; // placeholder for non implemented BG
|
||||
}
|
||||
|
||||
bg->SetMapId(MapID);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue