From 0d4c1809bff17a5f120c0ca43b2b4b1d39981449 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Jun 2026 19:26:33 +0000 Subject: [PATCH] =?UTF-8?q?Remove=20intermediate=20SaveToDB=20calls=20in?= =?UTF-8?q?=20PlayerbotFactory::Randomize=20(3=E2=86=921=20save=20per=20cy?= =?UTF-8?q?cle)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/Bots/playerbot/PlayerbotFactory.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/modules/Bots/playerbot/PlayerbotFactory.cpp b/src/modules/Bots/playerbot/PlayerbotFactory.cpp index 7c0fee2fa..320c6a36c 100755 --- a/src/modules/Bots/playerbot/PlayerbotFactory.cpp +++ b/src/modules/Bots/playerbot/PlayerbotFactory.cpp @@ -118,7 +118,6 @@ void PlayerbotFactory::Randomize(bool incremental) bot->resetTalents(true); ClearSpells(); ClearInventory(); - bot->SaveToDB(); sLog.outDetail("Initializing quests..."); InitQuests(); @@ -127,7 +126,6 @@ void PlayerbotFactory::Randomize(bool incremental) ClearInventory(); bot->SetUInt32Value(PLAYER_XP, 0); CancelAuras(); - bot->SaveToDB(); sLog.outDetail("Initializing spells (step 1)..."); InitAvailableSpells(); @@ -151,7 +149,6 @@ void PlayerbotFactory::Randomize(bool incremental) sLog.outDetail("Initializing skills (step 2)..."); UpdateTradeSkills(); - bot->SaveToDB(); sLog.outDetail("Initializing equipment..."); InitEquipment(incremental);