summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-29 01:59:41 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commit6058db4c3d3fac9f6113085bb301e52b352859ed (patch)
treebccfd97ed3413ca2178a5d588ba26b5a767d6cc8
parenta075230105463a8162bb8f47618a4e0f9f9a6ed9 (diff)
downloadfriedrich-6058db4c3d3fac9f6113085bb301e52b352859ed.tar.gz
fix typo in oo victory check
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 9a6bd16..b7e8803 100644
--- a/rules.js
+++ b/rules.js
@@ -921,7 +921,7 @@ function check_offensive_option_victory() {
function check_power_victory(victory, city_list, power) {
if (power === P_AUSTRIA && is_offensive_option()) {
let n = count_captured_objectives(power)
- if (n >= city_list.length - 4 && has_conquered_one_of(data.country.Saxony))
+ if (n >= city_list[power].length - 4 && has_conquered_one_of(data.country.Saxony))
set_add(victory, power)
return
}