Browse Source

Fixed crash when setting players number to 1.

DjWarmonger 11 năm trước cách đây
mục cha
commit
b97e4b1ab5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
 }