From ddd3e43d4ead337f8eae5d93e4083c05222f4652 Mon Sep 17 00:00:00 2001 From: Uleat Date: Fri, 10 Aug 2018 22:02:19 -0400 Subject: [PATCH] Added 'no valid genders' conditional to bot create validation [ci skip] --- zone/bot_command.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone/bot_command.cpp b/zone/bot_command.cpp index cc24609ec..5bdb0918a 100644 --- a/zone/bot_command.cpp +++ b/zone/bot_command.cpp @@ -7670,6 +7670,8 @@ uint32 helper_bot_create(Client *bot_owner, std::string bot_name, uint8 bot_clas bot_owner->Message(m_fail, "gender: %u(F)", FEMALE); else if (RuleI(Bots, AllowedGenders) == 1) bot_owner->Message(m_fail, "gender: %u(M)", MALE); + else + bot_owner->Message(m_fail, "gender: ERROR - No valid genders exist"); return bot_id; }