Skip to content

Commit

Permalink
Fix 5028: Tow Button no longer working.
Browse files Browse the repository at this point in the history
  • Loading branch information
HoneySkull committed Jan 10, 2024
1 parent a9d428c commit 6af0ed6
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 @@ -2996,7 +2996,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 6af0ed6

Please sign in to comment.