From c39b3aaed8203fcc7565297532a0695302260e22 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 17 Jul 2021 13:47:36 +0200 Subject: crusader: Fix regroup away test, again... --- ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui.js') 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 { -- cgit v1.2.3