From 622f0212c073ced29eea6cf5139e9872a57fdecc Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 1 Nov 2023 16:06:01 +0100 Subject: fix stack bug when clicking units off map. --- play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'play.js') diff --git a/play.js b/play.js index 16bc072..a1e2313 100644 --- a/play.js +++ b/play.js @@ -369,7 +369,7 @@ function focus_stack(stack) { if (focus !== stack) { focus = stack update_map() - return stack.length <= 1 + return !stack || stack.length <= 1 } return true } -- cgit v1.2.3