From 6f9157ff61f90c601d483394050a92cece3d12c0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 8 Apr 2007 17:37:25 +0000 Subject: [PATCH] cleanup --- stepmania/src/GameState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 47f17785f3..0e2cb9750a 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -1827,7 +1827,7 @@ bool GameState::ChangePreferredDifficulty( PlayerNumber pn, int dir ) Difficulty d = GetClosestShownDifficulty(pn); while( 1 ) { - d = (Difficulty)(d+dir); + d = enum_add2( d, dir ); if( d < 0 || d >= NUM_Difficulty ) return false; if( find(v.begin(), v.end(), d) != v.end() )