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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user