Fix wrong usage of loop variables

This commit is contained in:
dhewg 2011-12-08 00:53:22 +01:00 committed by Daniel Gibson
parent 5c716c569f
commit dec4098879
2 changed files with 3 additions and 3 deletions

View file

@ -62,7 +62,7 @@ void idSurface_Polytope::FromPlanes( const idPlane *planes, const int numPlanes
}
for ( j = 0; j < w.GetNumPoints(); j++ ) {
for ( k = 0; k < verts.Num(); j++ ) {
for ( k = 0; k < verts.Num(); k++ ) {
if ( verts[k].xyz.Compare( w[j].ToVec3(), POLYTOPE_VERTEX_EPSILON ) ) {
break;
}

View file

@ -3125,9 +3125,9 @@ bool idMatX::IsOrthonormal( const float epsilon ) const {
ptr2 = mat + i;
sum = ptr2[0] * ptr2[0] - 1.0f;
for ( i = 1; i < numRows; i++ ) {
for ( int j = 1; j < numRows; j++ ) {
ptr2 += numColumns;
sum += ptr2[i] * ptr2[i];
sum += ptr2[i] * ptr2[j];
}
if ( idMath::Fabs( sum ) > epsilon ) {
return false;