diff --git a/lib/rmg/CMapGenOptions.cpp b/lib/rmg/CMapGenOptions.cpp index 2a9169739..b5607b753 100644 --- a/lib/rmg/CMapGenOptions.cpp +++ b/lib/rmg/CMapGenOptions.cpp @@ -124,17 +124,7 @@ si8 CMapGenOptions::getMinPlayersCount(bool withTemplateLimit) const si8 CMapGenOptions::getMaxPlayersCount(bool withTemplateLimit) const { // Max number of players possible with current settings - auto totalPlayers = 0; - si8 humans = getHumanOrCpuPlayerCount(); - si8 cpus = getCompOnlyPlayerCount(); - if (humans == RANDOM_SIZE || cpus == RANDOM_SIZE) - { - totalPlayers = PlayerColor::PLAYER_LIMIT_I; - } - else - { - totalPlayers = humans + cpus; - } + auto totalPlayers = PlayerColor::PLAYER_LIMIT_I; if (withTemplateLimit && mapTemplate) {