Fix data-race for istack data in transfer to empty stack

This commit is contained in:
Gabriel Tofvesson 2024-10-09 03:32:47 +02:00
parent 8ecf32dae9
commit 37dfa98e42

View File

@ -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