Fix potential out of bounds access caused by CM_GridPlane
Coverity doesn't care if there is a warning, out of bounds access is bad.
This commit is contained in:
1 parent
494789664e
commit
9d74227559
1 file changed
+1
-1
@@ -607,7 +607,7 @@ static int CM_GridPlane( int gridPlanes[MAX_GRID_SIZE][MAX_GRID_SIZE][2], int i,
|
||||
}
|
||||
|
||||
// should never happen
|
||||
Com_Printf( "WARNING: CM_GridPlane unresolvable\n" );
|
||||
Com_Error( ERR_DROP, "CM_GridPlane unresolvable" );
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user