Skip to content

Commit

Permalink
Fixed crash when setting players number to 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
DjWarmonger authored and DjWarmonger committed Jul 26, 2014
1 parent 16aa230 commit b97e4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rmg/CMapGenOptions.cpp
Expand Up @@ -65,7 +65,7 @@ si8 CMapGenOptions::getPlayerCount() const

void CMapGenOptions::setPlayerCount(si8 value)
{
assert((value >= 2 && value <= PlayerColor::PLAYER_LIMIT_I) || value == RANDOM_SIZE);
assert((value >= 1 && value <= PlayerColor::PLAYER_LIMIT_I) || value == RANDOM_SIZE);
playerCount = value;
resetPlayersMap();
}
Expand Down

0 comments on commit b97e4b1

Please sign in to comment.