Compare commits

..

3 Commits

Author SHA1 Message Date
868213081f Fix claim of bought items 2022-07-10 19:40:52 +02:00
969571f559 Fix crash if buyer out of funds 2022-07-10 18:42:25 +02:00
15bba05412 add search in translated string add translate missing string 2022-07-09 18:02:17 +02:00

View File

@ -1066,13 +1066,13 @@ function ex_methods.sell(self, p_name, ex_name, item_name, wear, amount, rate)
local red_del_stmt
if row_sold < row_amount and not out_of_funds then
if row_sold < row_amount then
red_stmt:bind_names({
id = row.Id,
delta = row_sold,
})
red_del_stmt = red_stmt
else -- row_sold == row_amount or out_of_funds
else
del_stmt:bind_values(row.Id)
red_del_stmt = del_stmt
end