Compare commits

..

No commits in common. "master" and "translate_search" have entirely different histories.

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 then
if row_sold < row_amount and not out_of_funds then
red_stmt:bind_names({
id = row.Id,
delta = row_sold,
})
red_del_stmt = red_stmt
else
else -- row_sold == row_amount or out_of_funds
del_stmt:bind_values(row.Id)
red_del_stmt = del_stmt
end