mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[8566] avoid singleton-lock when accessing BattleGroundMGR::isBGWeekend()
proposed by vladimir
This commit is contained in:
parent
8246a8c310
commit
4f35eaebd5
4 changed files with 4 additions and 4 deletions
|
|
@ -430,7 +430,7 @@ void BattleGroundEY::Reset()
|
|||
m_DroppedFlagGUID = 0;
|
||||
m_PointAddingTimer = 0;
|
||||
m_TowerCapCheckTimer = 0;
|
||||
bool isBGWeekend = sBattleGroundMgr.IsBGWeekend(GetTypeID());
|
||||
bool isBGWeekend = BattleGroundMgr::IsBGWeekend(GetTypeID());
|
||||
m_HonorTics = (isBGWeekend) ? BG_EY_EYWeekendHonorTicks : BG_EY_NotEYWeekendHonorTicks;
|
||||
|
||||
for(uint8 i = 0; i < BG_EY_NODES_MAX; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue