summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index b1ae977..26e5757 100644
--- a/rules.js
+++ b/rules.js
@@ -769,6 +769,9 @@ function lord_has_routed_units(lord) {
}
function rout_vassal(lord, vassal) {
+ if (game.battle.routed_vassals[lord] === 0)
+ game.battle.routed_vassals[lord] = []
+
set_add(game.battle.routed_vassals[lord], vassal)
}