|
@@ -779,8 +779,8 @@ void AdventureMapInterface::showMoveDetailsInStatusbar(const CGHeroInstance & he
|
|
const int movementPointsLastTurnCost = maxMovementPointsAtStartOfLastTurn - pathNode.moveRemains;
|
|
const int movementPointsLastTurnCost = maxMovementPointsAtStartOfLastTurn - pathNode.moveRemains;
|
|
const int remainingPointsAfterMove = pathNode.moveRemains;
|
|
const int remainingPointsAfterMove = pathNode.moveRemains;
|
|
|
|
|
|
- int totalMovementCost = 0;
|
|
|
|
- for (int i = 0; i <= pathNode.turns; ++i)
|
|
|
|
|
|
+ int totalMovementCost = hero.movementPointsRemaining();
|
|
|
|
+ for (int i = 1; i <= pathNode.turns; ++i)
|
|
{
|
|
{
|
|
auto turnInfo = hero.getTurnInfo(i);
|
|
auto turnInfo = hero.getTurnInfo(i);
|
|
if (pathNode.layer == EPathfindingLayer::SAIL)
|
|
if (pathNode.layer == EPathfindingLayer::SAIL)
|