mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Fix: use stored randombg resettime for calculating when to do the next daily reset of random battlegrounds
Thanks to HP for pointing this out. --HG-- branch : trunk
This commit is contained in:
@@ -2582,7 +2582,7 @@ void World::InitRandomBGResetTime()
|
||||
nextDayResetTime += DAY;
|
||||
|
||||
// normalize reset time
|
||||
m_NextRandomBGReset = m_NextRandomBGReset < curTime ? nextDayResetTime - DAY : nextDayResetTime;
|
||||
m_NextRandomBGReset = bgtime < curTime ? nextDayResetTime - DAY : nextDayResetTime;
|
||||
|
||||
if (!bgtime)
|
||||
sWorld.setWorldState(WS_BG_DAILY_RESET_TIME, uint64(m_NextRandomBGReset));
|
||||
|
||||
Reference in New Issue
Block a user