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

Fix issues introduced by fixing typos

This commit is contained in:
Alexander Wilms
2024-06-27 01:26:28 +02:00
committed by Alexander Wilms
parent 8444f7b330
commit 31e1d39f92
13 changed files with 66 additions and 66 deletions

View File

@@ -781,12 +781,12 @@ int CPlayerSpecificInfoCallback::getHeroSerial(const CGHeroInstance * hero, bool
size_t index = 0;
auto & heroes = gs->players[*getPlayerID()].heroes;
for (auto & hero : heroes)
for (auto & possibleHero : heroes)
{
if (includeGarrisoned || !(hero)->inTownGarrison)
if (includeGarrisoned || !(possibleHero)->inTownGarrison)
index++;
if (hero == hero)
if (possibleHero == hero)
return static_cast<int>(index);
}
return -1;