From a51abcbc1164e9d3b9f635eae643196c5e994d04 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 29 Sep 2003 04:23:53 +0000 Subject: [PATCH] Fix MoveMap() --- stepmania/src/ScreenOptionsMasterPrefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/ScreenOptionsMasterPrefs.cpp b/stepmania/src/ScreenOptionsMasterPrefs.cpp index b0acb99cac..9c9178529f 100644 --- a/stepmania/src/ScreenOptionsMasterPrefs.cpp +++ b/stepmania/src/ScreenOptionsMasterPrefs.cpp @@ -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;