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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user