summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index b977b6f..29011f8 100644
--- a/play.js
+++ b/play.js
@@ -1704,7 +1704,7 @@ function update_battle() {
}
function is_lord_in_battle(lord) {
- if (view.battle) {
+ if (view.battle && view.battle.array) {
for (let i = 0; i < 12; ++i)
if (view.battle.array[i] === lord)
return true