Fix some "> MAX_*" to be ">= MAX_*".

This commit is contained in:
Zack Middleton 2012-11-18 19:09:54 +00:00
parent d635193e19
commit 82f83cd092
5 changed files with 8 additions and 8 deletions

View file

@ -522,7 +522,7 @@ void BotSetBrushModelTypes(void)
if (model[0]) modelnum = atoi(model+1);
else modelnum = 0;
if (modelnum < 0 || modelnum > MAX_MODELS)
if (modelnum < 0 || modelnum >= MAX_MODELS)
{
botimport.Print(PRT_MESSAGE, "entity %s model number out of range\n", classname);
continue;