summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-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)
}
})