1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Unused variable, unused code

This commit is contained in:
Tomasz Zieliński
2023-10-30 21:33:49 +01:00
parent 80198f21d8
commit 6e7b68d0e6
2 changed files with 1 additions and 26 deletions

View File

@@ -264,7 +264,7 @@ void RandomMapTab::setMapGenOptions(std::shared_ptr<CMapGenOptions> opts)
}
else // Random
{
vstd::erase_if(compCountAllowed, [playerLimit, humanOrCpuPlayerCount](int el)
vstd::erase_if(compCountAllowed, [playerLimit](int el)
{
return (playerLimit - 1) < el; // Must leave at least 1 human player
});