1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-03 14:52:11 +02:00

call getPlayerLimit

This commit is contained in:
mikeiit 2024-11-24 19:50:47 -08:00
parent 9cef823330
commit a4db80671a

View File

@ -263,7 +263,7 @@ void RandomMapTab::setMapGenOptions(std::shared_ptr<CMapGenOptions> opts)
humanCountAllowed = tmpl->getHumanPlayers().getNumbers(); // Unused now?
}
si8 playerLimit = opts->getMaxPlayersCount();
si8 playerLimit = opts->getPlayerLimit();
si8 humanOrCpuPlayerCount = opts->getHumanOrCpuPlayerCount();
si8 compOnlyPlayersCount = opts->getCompOnlyPlayerCount();