chiark / gitweb /
query_routesearch: set default for MinProfit
[ypp-sc-tools.db-test.git] / yarrg / web / query_routesearch
index 87e9d33649bbbb0846f2efc08325f7c0d46d33c1..478b622d8dcef39acb7933de2231b0886e6539de 100644 (file)
@@ -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;