X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=blobdiff_plain;f=yarrg%2Fweb%2Fquery_routesearch;h=478b622d8dcef39acb7933de2231b0886e6539de;hp=87e9d33649bbbb0846f2efc08325f7c0d46d33c1;hb=3276ebe915a34abf34cf9639e83c85b8adac5245;hpb=ae2758e8121ca99fc8055e794b4f891e4b0e267a diff --git a/yarrg/web/query_routesearch b/yarrg/web/query_routesearch index 87e9d33..478b622 100644 --- a/yarrg/web/query_routesearch +++ b/yarrg/web/query_routesearch @@ -181,7 +181,7 @@ foreach my $k (qw(MaxMass MaxVolume MaxCapital)) { } push @rsargs, defined $routeparams->{LossPerLeaguePct} ? $routeparams->{LossPerLeaguePct}*0.01 : 1e-9; -push @rsargs, $routeparams->{MinProfit}; +push @rsargs, $routeparams->{MinProfit} // 0; push @rsargs, 'search',$maxdist, $maxcountea,$maxcountea; push @rsargs, $destspec; push @rsargs, @islandids;