From d5e7a99e4efc3587d81a78da57417c1ec7db604f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 7 Oct 2023 17:44:07 +0200 Subject: oops! display battle/non-battle vassal confusion --- play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/play.js b/play.js index 58054a7..4da0598 100644 --- a/play.js +++ b/play.js @@ -1106,10 +1106,10 @@ function update_forces(parent, forces, lord_ix, routed) { if (i === VASSAL) { for_each_vassal_with_lord(lord_ix, v => { if (view.battle) { - if (routed === false) + if (set_has(view.battle.routed_vassals, v) === routed) add_vassal(parent, v, lord_ix, routed) } else { - if (set_has(view.battle.routed_vassals, v) === routed) + if (routed === false) add_vassal(parent, v, lord_ix, routed) } }) -- cgit v1.2.3