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

vcmi: remove unused-but-set-variables

This commit is contained in:
Konstantin
2023-01-23 02:58:41 +03:00
parent 3ea4e8c249
commit cf56f7ccce
4 changed files with 1 additions and 13 deletions

View File

@@ -322,7 +322,7 @@ void CMapGenOptions::finalize(CRandomGenerator & rand)
//setWidth(50);
logGlobal->trace("Player config:");
int humanPlayers = 0, cpuOnlyPlayers = 0, AIplayers = 0;
int cpuOnlyPlayers = 0;
for (auto player : players)
{
std::string playerType;
@@ -330,7 +330,6 @@ void CMapGenOptions::finalize(CRandomGenerator & rand)
{
case EPlayerType::AI:
playerType = "AI";
AIplayers++;
break;
case EPlayerType::COMP_ONLY:
playerType = "computer only";
@@ -338,7 +337,6 @@ void CMapGenOptions::finalize(CRandomGenerator & rand)
break;
case EPlayerType::HUMAN:
playerType = "human only";
humanPlayers++;
break;
default:
assert(false);