Update src/modules/military-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Marc Emmanuel 2026-02-28 10:04:22 +01:00 committed by GitHub
parent 781d99ae10
commit 1608a21264
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -405,7 +405,7 @@ class MilitaryModule {
s: State,
): MilitaryRegiment[] => {
if (!nodes.length) return [];
nodes.sort((a, b) => a.a - b.a); // form regiments starting from cells with fewest troops
nodes.sort((a, b) => a.a - b.a); // form regiments in cells with most troops
const tree = quadtree(
nodes,