mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Fixed swapping a unit with a unit that is escorting (#11268)
This commit is contained in:
parent
b10ed5ff87
commit
9d1614372e
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user