summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-07 17:44:07 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commitd5e7a99e4efc3587d81a78da57417c1ec7db604f (patch)
tree763c654838a261206a6f2f5407a0e1b095be4c9c
parentdea6d3119e78bdd9cb459a1e56c1d71cfb4be747 (diff)
downloadplantagenet-d5e7a99e4efc3587d81a78da57417c1ec7db604f.tar.gz
oops! display battle/non-battle vassal confusion
-rw-r--r--play.js4
1 files 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)
}
})