From 4aaae15079d2f9768e7613ccb485007bf95c51b1 Mon Sep 17 00:00:00 2001 From: insunaa Date: Thu, 18 Jan 2024 11:13:30 +0100 Subject: [PATCH] SQLite: Fix missed truncate syntax update --- src/game/World/World.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/World/World.cpp b/src/game/World/World.cpp index 31f8c23914..04bf9c24dd 100644 --- a/src/game/World/World.cpp +++ b/src/game/World/World.cpp @@ -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(); @@ -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();