Fix MoveMap()

This commit is contained in:
Glenn Maynard
2003-09-29 04:23:53 +00:00
parent 8302aa9b4a
commit a51abcbc11
+1 -1
View File
@@ -254,7 +254,7 @@ static void MoveMap( int &sel, T &opt, bool ToSel, const T *map, unsigned cnt )
for( unsigned i = 0; i < cnt; ++i )
{
const T val = map[i];
T dist = opt < val? (T)(opt-val): (T)(val-opt);
T dist = opt > val? (T)(opt-val): (T)(val-opt);
if( have_best && dist > best_dist )
continue;