[Bots] Change HasBotItem(item_id) to return slot_id instead of bool. (#2966)

This commit is contained in:
Aeadoin
2023-02-19 16:13:28 -05:00
committed by GitHub
parent 443abf9199
commit c13f9f80d9
6 changed files with 11 additions and 15 deletions
+1 -1
View File
@@ -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;