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

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

No files matched your search

+1 -1
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;