summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 4806eb5..b6a2510 100644
--- a/ui.js
+++ b/ui.js
@@ -105,7 +105,7 @@ function on_click_army(evt) {
if (ui.selected_armies && ui.selected_armies.includes(evt.target)) {
remove_from_array(ui.selected_armies, evt.target);
} else {
- if (ui.selected_armies.length < ui.selected_fleets.length)
+ if (ui.selected_armies.length < ui.selected_fleets.length && ui.selected_armies.length < 3)
ui.selected_armies.push(here[ui.selected_armies.length]);
}
}