Changeset 3853


Ignore:
Timestamp:
Mar 2, 2015, 3:10:33 PM (7 years ago)
Author:
guite
Message:

matrix: p_matrix tiny cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/math/matrix.h

    r3852 r3853  
    593593        for (int j = 0 ; j < N ; ++j)
    594594        {
    595             while (j < N && used[j])
    596                 ++j;
    597 
    598             if (j >= N)
    599                 break;
    600 
    601             if (index_max == -1 || m[i][j] > m[i][index_max])
     595            if (!used[j] && (index_max == -1 || m[i][j] > m[i][index_max]))
    602596                index_max = j;
    603597        }
Note: See TracChangeset for help on using the changeset viewer.