From cce959f168cf42c6def7b2c6700f7d3a03ae528c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 4 Jan 2022 15:19:24 +0100 Subject: Always push undo before changing any state. --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 38a7d4d..e28b9fa 100644 --- a/rules.js +++ b/rules.js @@ -1644,8 +1644,8 @@ states.move_phase = { game.state = 'muster'; }, block: function (who) { - game.summary = []; push_undo(); + game.summary = []; game.who = who; game.where = game.location[who]; if (game.where === GERMANIA) { @@ -3552,9 +3552,9 @@ states.winter_replacements = { } }, block: function (who) { + push_undo(); let where = game.location[who]; let cost = replacement_cost(where); - push_undo(); game.summary.push([where]); game.steps[who] ++; game.rp[where] -= cost; -- cgit v1.2.3