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

Merge pull request #1221 from IvanSavenko/warnings_fix

Fix remaining compiler warnings
This commit is contained in:
Ivan Savenko
2022-12-29 21:51:55 +02:00
committed by GitHub
119 changed files with 427 additions and 411 deletions

View File

@@ -1159,7 +1159,7 @@ std::vector<ui32> CGMagicSpring::getAvailableRewards(const CGHeroInstance * hero
auto tiles = getVisitableOffsets();
for (size_t i=0; i<tiles.size(); i++)
{
if (pos - tiles[i] == hero->getPosition() && info[i].numOfGrants == 0)
if (pos - tiles[i] == hero->visitablePos() && info[i].numOfGrants == 0)
{
return std::vector<ui32>(1, (ui32)i);
}