fix broken ChangePreferredDifficulty

This commit is contained in:
Chris Danford
2005-04-03 09:48:15 +00:00
parent 6417e643d4
commit 6c379ca934
+2 -2
View File
@@ -1726,8 +1726,8 @@ bool GameState::ChangePreferredDifficulty( PlayerNumber pn, int dir )
d = (Difficulty)(d+dir);
if( d < 0 || d >= NUM_DIFFICULTIES )
return false;
if( find(v.begin(), v.end(), d) == v.end() )
continue; /* not available */
if( find(v.begin(), v.end(), d) != v.end() )
break; // found
}
return ChangePreferredDifficulty( pn, d );