summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-22 02:12:07 +0200
committerTor Andersson <tor@ccxvii.net>2023-09-22 02:12:07 +0200
commit8d1fcedf50100c78a6bb95fe41d70d3d7b5faddf (patch)
treefd77bf9a5743fd8adf2f41f52215fc6585f609d6
parentf7221dfa2d54e057c063acfb636bd30aca74b18b (diff)
downloadwilderness-war-8d1fcedf50100c78a6bb95fe41d70d3d7b5faddf.tar.gz
Don't try to change immutable 'options' object.
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
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,