Only clone this.position when it's an object

Refs: #8951
This commit is contained in:
phosit
2026-07-16 18:18:58 +02:00
parent e6f75f2c33
commit 9598c6c2e1
@@ -2280,7 +2280,7 @@ AttackPlan.prototype.Serialize = function()
"siegeState": this.siegeState,
"position5TurnsAgo": this.position5TurnsAgo,
"lastPosition": this.lastPosition,
"position": clone(this.position),
"position": this.position !== undefined ? clone(this.position) : undefined,
"isBlocked": this.isBlocked,
"targetPlayer": this.targetPlayer,
"target": this.target !== undefined ? this.target.id() : undefined,