mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/Events: avoid looking up for battlegrounds when no battleground has been linked to an active event
This commit is contained in:
@@ -1223,7 +1223,8 @@ void GameEventMgr::UpdateBattlegroundSettings()
|
||||
sBattlegroundMgr->ResetHolidays();
|
||||
|
||||
for (uint32 activeEventId : m_ActiveEvents)
|
||||
sBattlegroundMgr->SetHolidayActive(mGameEventBattlegroundHolidays[activeEventId]);
|
||||
if (uint32 battleGroundId = mGameEventBattlegroundHolidays[activeEventId])
|
||||
sBattlegroundMgr->SetHolidayActive(battleGroundId);
|
||||
}
|
||||
|
||||
void GameEventMgr::UpdateEventNPCVendor(uint16 event_id, bool activate)
|
||||
|
||||
Reference in New Issue
Block a user