summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-11-01 18:08:53 +0100
committerTor Andersson <tor@ccxvii.net>2023-11-01 18:08:53 +0100
commit3355552cf7fbd044afb6f4832b255cb77bb2946d (patch)
treefce600db9589fcd3f5f47beaa8f15c323cdcc953
parent0a35b1d9ad0b5791c1123944492df07dabc6b876 (diff)
downloadalgeria-3355552cf7fbd044afb6f4832b255cb77bb2946d.tar.gz
fix undo
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index c1ae2c8..54e8aab 100644
--- a/rules.js
+++ b/rules.js
@@ -5082,7 +5082,8 @@ states.gov_coup_attempt_select_units = {
gen_action("done")
}
- view.actions.undo = 1
+ if (game.selected.length > 0)
+ view.actions.undo = 1
},
undo() {
if (game.selected.length > 0)