summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-20 12:35:32 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit67149e09be5311ff151189ba892056fc96c3b22f (patch)
tree030756031b7b8ea39b0d823921e68bd485c69d47 /rules.js
parent7588d2fd45ec4bbd54d8bb2ed892b2f488ffe1b6 (diff)
downloadnevsky-67149e09be5311ff151189ba892056fc96c3b22f.tar.gz
Fix ship counting.
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 2f11eb8..13276fd 100644
--- a/rules.js
+++ b/rules.js
@@ -2597,7 +2597,7 @@ states.summer_crusaders = {
function count_all_teutonic_ships() {
let n = 0
for (let lord = first_p1_lord; lord <= last_p1_lord; ++lord)
- if (is_lord_on_map())
+ if (is_lord_on_map(lord))
n += count_lord_ships(lord)
return n
}
@@ -2605,7 +2605,7 @@ function count_all_teutonic_ships() {
function count_all_russian_ships() {
let n = 0
for (let lord = first_p2_lord; lord <= last_p2_lord; ++lord)
- if (is_lord_on_map())
+ if (is_lord_on_map(lord))
n += count_lord_ships(lord)
return n
}