Skip to content

Commit

Permalink
Merge pull request #5035 from HoneySkull/Fix_Tow_Button
Browse files Browse the repository at this point in the history
Fix 5028: Tow Button no longer working.
  • Loading branch information
neoancient authored Jan 11, 2024
2 parents c5474d0 + 6af0ed6 commit 7d802f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megamek/src/megamek/client/ui/swing/MovementDisplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -3020,7 +3020,7 @@ private void updateTowingButtons() {

final boolean canTow = ce.getHitchLocations().stream()
.flatMap(c -> game().getEntitiesVector(c).stream())
.anyMatch(ce::canTow);
.anyMatch(e -> ce.canTow(e.getId()));
setTowEnabled(canTow);
}

Expand Down

0 comments on commit 7d802f1

Please sign in to comment.