[Crash] Fix crash with EVENT_UNEQUIP_ITEM_BOT (#2973)

This commit is contained in:
Aeadoin
2023-02-20 17:31:15 -05:00
committed by GitHub
parent df499b22ab
commit 6a668f8aa5
2 changed files with 10 additions and 11 deletions
+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) {