mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Fix unused variable
This commit is contained in:
@@ -178,9 +178,7 @@ si8 CMapGenOptions::getPlayerLimit() const
|
||||
|
||||
void CMapGenOptions::setCompOnlyPlayerCount(si8 value)
|
||||
{
|
||||
auto playerLimit = getPlayerLimit();
|
||||
|
||||
assert(value == RANDOM_SIZE || (getHumanOrCpuPlayerCount() == RANDOM_SIZE || (value >= 0 && value <= playerLimit - getHumanOrCpuPlayerCount())));
|
||||
assert(value == RANDOM_SIZE || (getHumanOrCpuPlayerCount() == RANDOM_SIZE || (value >= 0 && value <= getPlayerLimit() - getHumanOrCpuPlayerCount())));
|
||||
compOnlyPlayerCount = value;
|
||||
|
||||
resetPlayersMap();
|
||||
|
||||
Reference in New Issue
Block a user