Skip to content

Commit

Permalink
Don't prevent the user from setting maxGPT to a very high number
Browse files Browse the repository at this point in the history
  • Loading branch information
WombatFromHell committed Mar 4, 2015
1 parent 8eefa29 commit a0c028d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tradecalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a0c028d

Please sign in to comment.