From e1192925a4bbceaa704da42061c9b1a5b9ba2846 Mon Sep 17 00:00:00 2001 From: Emagi Date: Thu, 28 Nov 2024 07:46:19 -0500 Subject: [PATCH] Fix bots not properly camping out if the owner has camped out or "gone away" before --- source/WorldServer/Bots/Bot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/WorldServer/Bots/Bot.cpp b/source/WorldServer/Bots/Bot.cpp index 953aa32..630b873 100644 --- a/source/WorldServer/Bots/Bot.cpp +++ b/source/WorldServer/Bots/Bot.cpp @@ -721,12 +721,12 @@ void Bot::Begin_Camp() { GetZone()->Despawn(this, 5000); } + camping = false; + immediate_camp = true; + if (!GetOwner()) return; if (GetOwner()->IsPlayer()) ((Player*)GetOwner())->SpawnedBots.erase(BotIndex); - - camping = false; - immediate_camp = true; } \ No newline at end of file