Core/Instance: Lost fix config option Rate.InstanceResetTime

This commit is contained in:
HeartWell
2017-04-04 10:09:13 +03:00
committed by GitHub
parent 4e40707f5a
commit a4e0979bf3

View File

@@ -507,7 +507,7 @@ void InstanceSaveManager::_ResetOrWarnAll(uint32 mapid, Difficulty difficulty, b
// calculate the next reset time
uint32 diff = sWorld->getIntConfig(CONFIG_INSTANCE_RESET_TIME_HOUR) * HOUR;
uint32 period = mapDiff->resetTime;
uint32 period = uint32(((mapDiff->resetTime * sWorld->getRate(RATE_INSTANCE_RESET_TIME))/DAY) * DAY);
if (period < DAY)
period = DAY;