This commit is contained in:
shoopea 2020-02-29 18:27:09 +08:00
parent 81d04dd752
commit c374507a89

2
job.go
View File

@ -2103,7 +2103,7 @@ func jobAlchAll(j Job) {
for _, s := range cwm.Stock {
if i.ItemID64 == s.ItemID64 {
itemInStock = true
maxResItems[o.ObjID64] = MaxInt64(maxResItems[o.ObjID64], s.Quantity/i.Quantity)
maxResItems[o.ObjID64] = MinInt64(maxResItems[o.ObjID64], s.Quantity/i.Quantity)
break
}
}