From a0c028d61a7d0d0abc46923aed7d253cd9ff1a7f Mon Sep 17 00:00:00 2001 From: Jon Wrights Date: Wed, 4 Mar 2015 16:01:58 -0700 Subject: [PATCH] Don't prevent the user from setting maxGPT to a very high number --- tradecalc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tradecalc.py b/tradecalc.py index fc168eff..78daafb5 100644 --- a/tradecalc.py +++ b/tradecalc.py @@ -710,7 +710,7 @@ def getProfitables(self, srcSelling, dstBuying): itemIdx = self.tdb.itemByID trading = [] minGainCr = max(1, self.tdenv.minGainPerTon or 1) - maxGainCr = max(1000, self.tdenv.maxGainPerTon or 10000) + maxGainCr = max(minGainCr, self.tdenv.maxGainPerTon or sys.maxsize) for buy in dstBuying: buyItemID = buy[0] for sell in srcSelling: