mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-14 05:59:29 +01:00
*Fix a crash when aubot command is not correctly used.
--HG-- branch : trunk
This commit is contained in:
@@ -63,6 +63,16 @@ bool ChatHandler::HandleAHBotOptionsCommand(const char* args)
|
||||
if (ahMapIdStr)
|
||||
{
|
||||
ahMapID = (uint32) strtoul(ahMapIdStr, NULL, 0);
|
||||
switch (ahMapID)
|
||||
{
|
||||
case 2:
|
||||
case 6:
|
||||
case 7:
|
||||
break;
|
||||
default:
|
||||
opt = NULL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!opt)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user