summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-17 13:47:36 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:39 +0100
commitc39b3aaed8203fcc7565297532a0695302260e22 (patch)
tree3a62bfadd56b25bfb3f91c393b310c46a67f49af /ui.js
parent9ff6d22ddbd0e5690d5164694c9adf0158da893b (diff)
downloadcrusader-rex-c39b3aaed8203fcc7565297532a0695302260e22.tar.gz
crusader: Fix regroup away test, again...
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 6727d45..4aad065 100644
--- a/ui.js
+++ b/ui.js
@@ -718,7 +718,7 @@ function start_flash() {
return;
flash_timer = setInterval(function () {
if (!game.flash_next) {
- element.textContent = game.battle.flash;
+ element.textContent = game.battle ? game.battle.flash : "";
clearInterval(flash_timer);
flash_timer = 0;
} else {