Skip to content

Commit

Permalink
Merge pull request MegaMek#6263 from psikomonkie/issue-mekhq-5336
Browse files Browse the repository at this point in the history
Issue 6264: Destroyed Infantry no longer have negative weight
  • Loading branch information
HammerGS authored Dec 15, 2024
2 parents ad74c36 + dfd83f9 commit 298902a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megamek/src/megamek/common/verifier/TestInfantry.java
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public static double getWeightExact(Infantry infantry, CalculationReport report)
report.addEmptyLine();

InfantryMount mount = infantry.getMount();
int activeTroopers = infantry.getInternal(Infantry.LOC_INFANTRY);
int activeTroopers = Math.max(0, infantry.getInternal(Infantry.LOC_INFANTRY));
double weight;

if (mount != null) {
Expand Down

0 comments on commit 298902a

Please sign in to comment.