From 20728c31c492095aaee040874f126fa6bde8c6b4 Mon Sep 17 00:00:00 2001 From: Chris Miles Date: Mon, 6 Feb 2023 17:24:49 -0600 Subject: [PATCH] [Crash] Fix crash in bot command botdyearmor (#2832) * [Crash] Fix crash in bot command botdyearmor * Update bot_command.cpp --- zone/bot_command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot_command.cpp b/zone/bot_command.cpp index f41116949..f8110db63 100644 --- a/zone/bot_command.cpp +++ b/zone/bot_command.cpp @@ -5754,7 +5754,7 @@ void bot_subcommand_bot_dye_armor(Client *c, const Seperator *sep) return; } - if (helper_is_help_or_usage(sep->arg[1])) { + if (helper_is_help_or_usage(sep->arg[1]) || !sep->arg[1] || (sep->arg[1] && !Strings::IsNumber(sep->arg[1]))) { c->Message( Chat::White, fmt::format(