mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 13:37:08 +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
|
|
@ -469,7 +469,7 @@ void BattleGroundAB::Reset()
|
|||
}
|
||||
|
||||
m_IsInformedNearVictory = false;
|
||||
bool isBGWeekend = sBattleGroundMgr.IsBGWeekend(GetTypeID());
|
||||
bool isBGWeekend = BattleGroundMgr::IsBGWeekend(GetTypeID());
|
||||
m_HonorTics = (isBGWeekend) ? BG_AB_ABBGWeekendHonorTicks : BG_AB_NotABBGWeekendHonorTicks;
|
||||
m_ReputationTics = (isBGWeekend) ? BG_AB_ABBGWeekendReputationTicks : BG_AB_NotABBGWeekendReputationTicks;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue