*Fix a crash when aubot command is not correctly used.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-05 14:45:05 -05:00
parent 5aa9fdb556
commit 8d66848af8

View File

@@ -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)
{