Skip to content

Commit

Permalink
apply fix fleetbuilder commit
Browse files Browse the repository at this point in the history
  • Loading branch information
YOLOP0wn committed Sep 23, 2022
1 parent 0d21dd6 commit 4912636
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/wrapper/fleetBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ func (f *FleetBuilder) FlightTime() (secs, fuel int64) {
ships, _ = f.b.GetShips(f.origin.GetID())
}
}
if f.tx != nil {
return f.tx.FlightTime(f.origin.GetCoordinate(), f.destination, f.speed, ships, f.mission)
}
return f.b.FlightTime(f.origin.GetCoordinate(), f.destination, f.speed, ships, f.mission)
}

Expand Down

0 comments on commit 4912636

Please sign in to comment.