summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-12-09 15:48:33 +0100
committerTor Andersson <tor@ccxvii.net>2024-12-09 15:48:33 +0100
commit1ec28003bc2fc7411726c098f2e47280a562766f (patch)
treebbfbfb8bbe147f652cde23fb5addff59f5760784
parentbd283b25d99ea18901bff4f6d53aa9a62ac875d3 (diff)
downloadmaria-1ec28003bc2fc7411726c098f2e47280a562766f.tar.gz
Fix glitch with removing eliminated generals from selection.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 6ee4a7c..eb3af37 100644
--- a/rules.js
+++ b/rules.js
@@ -4194,7 +4194,7 @@ states.retreat_eliminate_hits = {
},
piece(p) {
eliminate_general(p, false)
- set_delete(game.selected, p)
+ array_remove_item(game.selected, p)
resume_retreat()
},
}