From dd3c76e9d2ce3b667a4bdd7a890af66256056fde Mon Sep 17 00:00:00 2001 From: Kinglykrab <89047260+Kinglykrab@users.noreply.github.com> Date: Tue, 22 Nov 2022 17:03:43 -0500 Subject: [PATCH] [Bug Fix] Fix EntityList::GetBotListByCharacterID() (#2569) - Class ID wasn't being checked, must've been left out of commit. --- zone/entity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zone/entity.cpp b/zone/entity.cpp index 624a678e8..fe3cdda1b 100644 --- a/zone/entity.cpp +++ b/zone/entity.cpp @@ -5175,7 +5175,8 @@ std::vector EntityList::GetBotListByCharacterID(uint32 character_id, uint for (const auto& b : bot_list) { if ( b->GetOwner() && - b->GetBotOwnerCharacterID() == character_id + b->GetBotOwnerCharacterID() == character_id && + (!class_id || b->GetClass() == class_id) ) { client_bot_list.push_back(b); }