mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
Fix buy/sell of stackable items on 8.6
This commit is contained in:
@@ -115,8 +115,10 @@ function UIMiniWindowContainer:swapInsert(widget, index)
|
||||
|
||||
if oldParent == self and oldIndex ~= index then
|
||||
local oldWidget = self:getChildByIndex(index)
|
||||
self:removeChild(oldWidget)
|
||||
self:insertChild(oldIndex, oldWidget)
|
||||
if oldWidget then
|
||||
self:removeChild(oldWidget)
|
||||
self:insertChild(oldIndex, oldWidget)
|
||||
end
|
||||
self:removeChild(widget)
|
||||
self:insertChild(index, widget)
|
||||
end
|
||||
|
Reference in New Issue
Block a user