fix build errors due to bad merge

This commit is contained in:
evanpelle
2025-06-02 14:17:55 -07:00
parent 8158ca966a
commit 33f7415d2c
2 changed files with 4 additions and 3 deletions
+1 -2
View File
@@ -31,8 +31,7 @@ export class DonateTroopsExecution implements Execution {
this.troops = mg.config().defaultDonationAmount(this.sender);
}
const maxDonation =
mg.config().maxPopulation(this.recipient) -
this.recipient.totalPopulation();
mg.config().maxPopulation(this.recipient) - this.recipient.population();
this.troops = Math.min(this.troops, maxDonation);
}