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().

This commit is contained in:
Steve Checkoway
2007-07-22 12:28:06 +00:00
parent 0e7ff5180c
commit ccf0b6ca8c
+2 -1
View File
@@ -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,