summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-02-13 01:11:41 +0100
committerTor Andersson <tor@ccxvii.net>2024-02-13 01:12:29 +0100
commit0304f1d2dfff413ba6b108a1bc1a8c13c0878b4c (patch)
treedc2155885a8d7b1b0884ad48bac5bacd42b81f1f
parentb825d600624124e43829d4344b814c962956f811 (diff)
downloadplantagenet-0304f1d2dfff413ba6b108a1bc1a8c13c0878b4c.tar.gz
Fix iteration over locales in goto_warwicks_propaganda.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 9f6883f..5bf4985 100644
--- a/rules.js
+++ b/rules.js
@@ -3034,7 +3034,7 @@ function is_propaganda_target(loc) {
function goto_warwicks_propaganda() {
let can_play = false
- for (let loc of data.locales) {
+ for (let loc = first_locale; loc <= last_locale; ++loc) {
if (has_favoury_marker(loc)) {
can_play = true
}