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

Added encapsulation for movement points access

This commit is contained in:
Ivan Savenko
2023-06-21 20:38:26 +03:00
parent edf7756783
commit 08cfbe79cf
24 changed files with 86 additions and 74 deletions

View File

@@ -124,7 +124,7 @@ const CGHeroInstance * PlayerLocalState::getNextWanderingHero(const CGHeroInstan
if (isHeroSleeping(hero))
continue;
if (hero->movement == 0)
if (hero->movementPointsRemaining() == 0)
continue;
if (!firstSuitable)