mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 17:08:23 +01:00
Core/World: Fixed a warning
This commit is contained in:
@@ -2884,9 +2884,6 @@ void World::ResetMonthlyQuests()
|
||||
|
||||
time_t nextMonthResetTime = mktime(&localTm);
|
||||
|
||||
// last reset time before current moment
|
||||
time_t resetTime = (curTime < nextMonthResetTime) ? nextMonthResetTime - MONTH : nextMonthResetTime;
|
||||
|
||||
// plan next reset time
|
||||
m_NextMonthlyQuestReset = (curTime >= nextMonthResetTime) ? nextMonthResetTime + MONTH : nextMonthResetTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user