Archived
0

fix sort by avg profit

This commit is contained in:
iMoHax
2015-01-05 01:13:30 +03:00
parent 50689ec744
commit 1a0e7d3c9d
3 changed files with 986 additions and 10 deletions

View File

@@ -77,7 +77,7 @@ public class PathRoute extends Path<Vendor> {
public PathRoute getCopy(boolean withOrders){
PathRoute path = getRoot();
PathRoute res = new PathRoute(path.getTarget());
PathRoute res = new PathRoute(path.getTarget(), path.byAvg);
if (withOrders) {
res.orders.clear();
res.orders.addAll(path.getOrders());