mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 22:01:30 +00:00
[Bug Fix] Fix EntityList::GetBotListByCharacterID() (#2569)
- Class ID wasn't being checked, must've been left out of commit.
This commit is contained in:
parent
5e6741cf17
commit
dd3c76e9d2
@ -5175,7 +5175,8 @@ std::vector<Bot *> 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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user