Fix data-race for istack data in transfer to empty stack
This commit is contained in:
parent
8ecf32dae9
commit
37dfa98e42
@ -193,8 +193,8 @@ function ItemStack:transferTo(target, count)
|
||||
return false, xfer
|
||||
end
|
||||
|
||||
self:_modify(-xfer, self)
|
||||
target:_modify(xfer, self)
|
||||
self:_modify(-xfer, self)
|
||||
|
||||
return xfer == count, xfer
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user