Browse Source

Fixed crash when setting players number to 1.

DjWarmonger 11 years ago
parent
commit
b97e4b1ab5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/rmg/CMapGenOptions.cpp

+ 1 - 1
lib/rmg/CMapGenOptions.cpp

@@ -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();
 }