Closed dd84ai closed 3 years ago
Added description and brackets
base->market_items[gbi.iGoodID].min_stock > base->market_items[gbi.iGoodID].quantity - count
there is still ambiguity here, both >
and -
in use without brackets
I get it. in case if the result of > operation can be casted into int and becoming 0 - 1 value used for subtracting operation.
fixed
Looks good but we now need to also take care of the check on line 1671
fixed
We discussed it before, this is what you suggested Alex.
Better description: there is bug that anyone can buy goods more than minstock allows. By taking into account how much 'customer' requested, the amount of goods will be never lower than minstock amount.