1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix build, fix sonar

This commit is contained in:
Ivan Savenko
2025-07-13 17:25:26 +03:00
parent 246010c13e
commit a0a99d7311
12 changed files with 40 additions and 41 deletions

View File

@@ -1236,7 +1236,7 @@ void CPlayerInterface::heroBonusChanged( const CGHeroInstance *hero, const Bonus
adventureInt->onHeroChanged(hero);
//recalculate paths because hero has lost or gained bonus influencing pathfinding
if ((bonus.type == BonusType::FLYING_MOVEMENT || bonus.type == BonusType::WATER_WALKING || bonus.type == BonusType::ROUGH_TERRAIN_DISCOUNT || bonus.type == BonusType::NO_TERRAIN_PENALTY))
if (bonus.type == BonusType::FLYING_MOVEMENT || bonus.type == BonusType::WATER_WALKING || bonus.type == BonusType::ROUGH_TERRAIN_DISCOUNT || bonus.type == BonusType::NO_TERRAIN_PENALTY)
localState->verifyPath(hero);
}