Fixed swapping a unit with a unit that is escorting (#11268)

This commit is contained in:
Oskar Niesen
2024-03-09 15:05:49 -06:00
committed by GitHub
parent b10ed5ff87
commit 9d1614372e

View File

@ -523,7 +523,7 @@ class UnitMovement(val unit: MapUnit) {
else
destination.militaryUnit
)?: return // The precondition guarantees that there is an eligible same-type unit at the destination
otherUnit.stopEscorting()
val ourOldPosition = unit.getTile()
val theirOldPosition = otherUnit.getTile()