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:
+1
-1
@@ -2582,7 +2582,7 @@ void World::InitRandomBGResetTime()
|
|||||||
nextDayResetTime += DAY;
|
nextDayResetTime += DAY;
|
||||||
|
|
||||||
// normalize reset time
|
// normalize reset time
|
||||||
m_NextRandomBGReset = m_NextRandomBGReset < curTime ? nextDayResetTime - DAY : nextDayResetTime;
|
m_NextRandomBGReset = bgtime < curTime ? nextDayResetTime - DAY : nextDayResetTime;
|
||||||
|
|
||||||
if (!bgtime)
|
if (!bgtime)
|
||||||
sWorld.setWorldState(WS_BG_DAILY_RESET_TIME, uint64(m_NextRandomBGReset));
|
sWorld.setWorldState(WS_BG_DAILY_RESET_TIME, uint64(m_NextRandomBGReset));
|
||||||
|
|||||||
Reference in New Issue
Block a user