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
@@ -1121,7 +1121,7 @@ void S_AL_UpdateEntityPosition( int entityNum, const vec3_t origin )
|
||||
|
||||
VectorCopy( origin, sanOrigin );
|
||||
S_AL_SanitiseVector( sanOrigin );
|
||||
if ( entityNum < 0 || entityNum > MAX_GENTITIES )
|
||||
if ( entityNum < 0 || entityNum >= MAX_GENTITIES )
|
||||
Com_Error( ERR_DROP, "S_UpdateEntityPosition: bad entitynum %i", entityNum );
|
||||
VectorCopy( sanOrigin, entityList[entityNum].origin );
|
||||
}
|
||||
@@ -1135,7 +1135,7 @@ Necessary for i.g. Western Quake3 mod which is buggy.
|
||||
*/
|
||||
static qboolean S_AL_CheckInput(int entityNum, sfxHandle_t sfx)
|
||||
{
|
||||
if (entityNum < 0 || entityNum > MAX_GENTITIES)
|
||||
if (entityNum < 0 || entityNum >= MAX_GENTITIES)
|
||||
Com_Error(ERR_DROP, "ERROR: S_AL_CheckInput: bad entitynum %i", entityNum);
|
||||
|
||||
if (sfx < 0 || sfx >= numSfx)
|
||||
|
||||
Reference in new issue
Block a user