diff --git a/core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt b/core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt index af14b6c40a..0ac70f90eb 100644 --- a/core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt +++ b/core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt @@ -14,7 +14,7 @@ import java.util.TreeSet fun List.toBackwardsCompatiblePath(): List { - val backwardsCompatiblePath = this.reversed().filter { it.totalCost.movementLeft == 0f || it == this.last() } + val backwardsCompatiblePath = this.filter { it.totalCost.movementLeft == 0f || it == this.last() } return backwardsCompatiblePath.map { it.tile } }