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