[Crash] Fix crash with EVENT_UNEQUIP_ITEM_BOT (#2973)

This commit is contained in:
Aeadoin authored and GitHub committed 2023-02-20 17:31:15 -05:00
1 parent df499b22ab
commit 6a668f8aa5
2 files changed
+10 -11

No files matched your search

+1 -1
View File
@@ -9320,7 +9320,7 @@ void bot_subcommand_inventory_remove(Client *c, const Seperator *sep)
return;
}
const auto* inst = my_bot->GetBotItem(slot_id);
auto* inst = my_bot->GetBotItem(slot_id);
if (!inst) {
std::string slot_message = "is";
switch (slot_id) {