summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-11 21:27:35 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commitd3011e533c39d30f73be9e0c22ea09e42b36d9ea (patch)
treeb8a3ee6849fd14ab7f3bc67ef65b61133ea64d5f /rules.js
parentb167b49550b6460a29662fe7fb512f21be7dd7f7 (diff)
downloadplantagenet-d3011e533c39d30f73be9e0c22ea09e42b36d9ea.tar.gz
Fix bug when choosing supply source type.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 8a30687..f5f7255 100644
--- a/rules.js
+++ b/rules.js
@@ -4540,10 +4540,10 @@ states.select_supply_type = {
view.actions.port = 1
},
stronghold() {
- use_stronghold_supply(source, get_stronghold_supply_amount(source))
+ use_stronghold_supply(game.where, get_stronghold_supply_amount(game.where))
},
port() {
- use_port_supply(source, get_port_supply_amount(source))
+ use_port_supply(game.where, get_port_supply_amount(game.where))
},
}