From 7dac49cf9c276333e849f68c4e3160f3cadddd02 Mon Sep 17 00:00:00 2001 From: privatecore Date: Tue, 30 Sep 2025 22:13:36 +0200 Subject: [PATCH] Fix wrong prepared statement used for the PlayerbotDbStore::Reset issue #1172 (#1688) --- src/PlayerbotDbStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlayerbotDbStore.cpp b/src/PlayerbotDbStore.cpp index d66056ec..a841e02b 100644 --- a/src/PlayerbotDbStore.cpp +++ b/src/PlayerbotDbStore.cpp @@ -82,7 +82,7 @@ void PlayerbotDbStore::Reset(PlayerbotAI* botAI) { ObjectGuid::LowType guid = botAI->GetBot()->GetGUID().GetCounter(); - PlayerbotsDatabasePreparedStatement* stmt = PlayerbotsDatabase.GetPreparedStatement(PLAYERBOTS_DEL_CUSTOM_STRATEGY); + PlayerbotsDatabasePreparedStatement* stmt = PlayerbotsDatabase.GetPreparedStatement(PLAYERBOTS_DEL_DB_STORE); stmt->SetData(0, guid); PlayerbotsDatabase.Execute(stmt); }