(svn r21702) -Fix: make sure the colour argument of echoc is properly validated to be a text colour

This commit is contained in:
rubidium
2011-01-03 12:04:53 +00:00
parent b25cf57542
commit 37b9c31118
2 changed files with 3 additions and 1 deletions

View File

@@ -958,7 +958,7 @@ DEF_CONSOLE_CMD(ConEchoC)
}
if (argc < 3) return false;
IConsolePrint((TextColour)atoi(argv[1]), argv[2]);
IConsolePrint((TextColour)Clamp(atoi(argv[1]), TC_BEGIN, TC_END - 1), argv[2]);
return true;
}