mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-27 21:49:10 +02:00
Fixed crash when setting players number to 1.
This commit is contained in:
parent
16aa230dd1
commit
b97e4b1ab5
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user