From 8d1fcedf50100c78a6bb95fe41d70d3d7b5faddf Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 22 Sep 2023 02:12:07 +0200 Subject: Don't try to change immutable 'options' object. --- rules.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rules.js b/rules.js index 4376f88..0fda774 100644 --- a/rules.js +++ b/rules.js @@ -9436,6 +9436,8 @@ function setup_1755(end_year) { } exports.setup = function (seed, scenario, options) { + options = object_copy(options) + load_game_state({ seed: seed, options: options, -- cgit v1.2.3