summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-11 11:39:04 +0200
committerTor Andersson <tor@ccxvii.net>2023-06-11 11:39:04 +0200
commitb01a274414810a8e29e3d6f59fedd2e4ad137c8f (patch)
tree462089f5b4188c571c73725c673018629df1096e
parent70728832282fe66a28d1bd4e8dd36119f4c6b7e5 (diff)
downloadred-flag-over-paris-b01a274414810a8e29e3d6f59fedd2e4ad137c8f.tar.gz
Fix bug when moving Disc from one space to another.
-rw-r--r--rules.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 9f4a99e..1a1d283 100644
--- a/rules.js
+++ b/rules.js
@@ -2940,6 +2940,7 @@ states.vm_move_disc = {
},
piece(p) {
push_undo()
+ let s = game.pieces[p]
if (game.active === COMMUNE)
log("Moved RD from S" + s + ".")
else