mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[9706] Correctly update next daily quest reset timestamp in DB after reset.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
8aa9d795be
commit
f0af98568e
2 changed files with 4 additions and 1 deletions
|
|
@ -1957,6 +1957,9 @@ void World::ResetDailyQuests()
|
|||
for(SessionMap::const_iterator itr = m_sessions.begin(); itr != m_sessions.end(); ++itr)
|
||||
if (itr->second->GetPlayer())
|
||||
itr->second->GetPlayer()->ResetDailyQuestStatus();
|
||||
|
||||
m_NextDailyQuestReset = time_t(m_NextDailyQuestReset + DAY);
|
||||
CharacterDatabase.PExecute("UPDATE saved_variables SET NextDailyQuestResetTime = '"UI64FMTD"'", uint64(m_NextDailyQuestReset));
|
||||
}
|
||||
|
||||
void World::ResetWeeklyQuests()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue