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:
committed by
Alexander Wilms
parent
8444f7b330
commit
31e1d39f92
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user