mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
fix possible mapview crash
This commit is contained in:
@@ -73,3 +73,6 @@ function UIMiniWindow:onMinimize()
|
||||
end
|
||||
end
|
||||
|
||||
function UIMiniWindow:getClassName()
|
||||
return 'UIMiniWindow'
|
||||
end
|
||||
|
@@ -8,8 +8,10 @@ function UIMiniWindowContainer.create()
|
||||
end
|
||||
|
||||
function UIMiniWindowContainer:onDrop(widget, mousePos)
|
||||
widget:setParent(self)
|
||||
return true
|
||||
if widget:getClassName() == 'UIMiniWindow' then
|
||||
widget:setParent(self)
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
function UIMiniWindowContainer:getClassName()
|
||||
|
Reference in New Issue
Block a user