[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

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