Archived
0

Set balance on convert to route

This commit is contained in:
iMoHax
2015-06-19 15:59:39 +03:00
parent 56153abf85
commit ce924f299a

View File

@@ -51,9 +51,8 @@ public class RouteSearcher {
public void add(List<Edge<Vendor>> edges){
Route route = toRoute(edges);
if (route.getProfit() > 0) {
routes.add(route);
}
route.setBalance(vGraph.getProfile().getBalance());
routes.add(route);
}
public List<Route> get() {