Fix some "> MAX_*" to be ">= MAX_*".
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user