瀏覽代碼

call getPlayerLimit

mikeiit 11 月之前
父節點
當前提交
a4db80671a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/lobby/RandomMapTab.cpp

+ 1 - 1
client/lobby/RandomMapTab.cpp

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