mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
[Bots] Change HasBotItem(item_id) to return slot_id instead of bool. (#2966)
This commit is contained in:
@@ -116,7 +116,7 @@ void command_gearup(Client *c, const Seperator *sep)
|
||||
if (t->IsClient()) {
|
||||
has_item = t->CastToClient()->GetInv().HasItem(item_id, 1, invWhereWorn) != INVALID_INDEX;
|
||||
} else if (t->IsBot()) {
|
||||
has_item = t->CastToBot()->HasBotItem(item_id);
|
||||
has_item = t->CastToBot()->HasBotItem(item_id) != INVALID_INDEX;
|
||||
}
|
||||
|
||||
bool can_wear_item = false;
|
||||
|
||||
Reference in New Issue
Block a user