forked from nalc/global_exchange
Bug fix - revenue incrementing should have been before remaining = 0 rather than after
This commit is contained in:
parent
cc70c125a9
commit
c2ba4eb797
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user