Fix some "> MAX_*" to be ">= MAX_*".
This commit is contained in:
1 parent
d635193e19
commit
82f83cd092
5 files changed
+8
-8
No files matched your search
@@ -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