Skip to content

Commit

Permalink
SQLite: Fix missed truncate syntax update
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Jan 18, 2024
1 parent d17d396 commit 4aaae15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/World/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2359,7 +2359,7 @@ void World::LoadSpamRecords(bool reload)
void World::ResetDailyQuests()
{
DETAIL_LOG("Daily quests reset for all characters.");
CharacterDatabase.Execute("TRUNCATE character_queststatus_daily");
CharacterDatabase.Execute(_TRUNCATE_ " character_queststatus_daily");
for (SessionMap::const_iterator itr = m_sessions.begin(); itr != m_sessions.end(); ++itr)
if (itr->second->GetPlayer())
itr->second->GetPlayer()->ResetDailyQuestStatus();
Expand All @@ -2373,7 +2373,7 @@ void World::ResetDailyQuests()
void World::ResetWeeklyQuests()
{
DETAIL_LOG("Weekly quests reset for all characters.");
CharacterDatabase.Execute("TRUNCATE character_queststatus_weekly");
CharacterDatabase.Execute(_TRUNCATE_ " character_queststatus_weekly");
for (SessionMap::const_iterator itr = m_sessions.begin(); itr != m_sessions.end(); ++itr)
if (itr->second->GetPlayer())
itr->second->GetPlayer()->ResetWeeklyQuestStatus();
Expand Down

0 comments on commit 4aaae15

Please sign in to comment.