From ccf0b6ca8ccd8915672d8a273e3d608d636e519e Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 22 Jul 2007 12:28:06 +0000 Subject: [PATCH] Fix bizarre recursion. The Difficulty enum was being cast to an int and passed as the direction. This is probably a poorly named function since it is fundamentally different from ChangePrefferedDifficultyAndStepsType(). --- stepmania/src/GameState.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 8901a6c20e..858d4610ae 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -1760,7 +1760,8 @@ bool GameState::ChangePreferredDifficulty( PlayerNumber pn, int dir ) break; // found } - return ChangePreferredDifficulty( pn, d ); + m_PreferredDifficulty[pn].Set( d ); + return true; } /* The user may be set to prefer a difficulty that isn't always shown; typically,