Fix some "> MAX_*" to be ">= MAX_*".
This commit is contained in:
parent
d635193e19
commit
82f83cd092
5 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue