[8566] avoid singleton-lock when accessing BattleGroundMGR::isBGWeekend()

proposed by vladimir
This commit is contained in:
balrok 2009-09-29 19:16:34 +02:00
parent 8246a8c310
commit 4f35eaebd5
4 changed files with 4 additions and 4 deletions

View file

@ -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;