mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Enabled & fixed -Woverloaded-virtual warning from gcc/cland
- fixed almost all instances of overloaded-virtual warning - cleared up inheritance & method overrides in code affected by warning
This commit is contained in:
@ -1157,7 +1157,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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user