Skip to content

Commit

Permalink
Changed loop variable name for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
neoancient committed Jul 5, 2022
1 parent 2f9baf8 commit 894ce8e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ private void calculateClusterSizes(Entity entity) {
if (entity instanceof BattleArmor) {
for (Mounted mounted : entity.getIndividualWeaponList()) {
if (mounted.getType() instanceof MissileWeapon) {
for (int i = 1; i <= size; i++) {
clusterSizes.add(Math.min(40, i * ((MissileWeapon) mounted.getType()).getRackSize()));
for (int troopers = 1; troopers <= size; troopers++) {
clusterSizes.add(Math.min(40, troopers * ((MissileWeapon) mounted.getType()).getRackSize()));
}
}
}
Expand Down

0 comments on commit 894ce8e

Please sign in to comment.