summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
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 {