Bug fix - revenue incrementing should have been before remaining = 0 rather than after

This commit is contained in:
raymoo 2016-03-12 01:19:20 -08:00
parent cc70c125a9
commit c2ba4eb797

View File

@ -982,7 +982,8 @@ function ex_methods.sell(self, p_name, ex_name, item_name, amount, rate)
db:exec("ROLLBACK;")
return false, log2_err
end
revenue = revenue + remaining * row.Rate
remaining = 0
end