|
|
@ -149,8 +149,8 @@ function onChooseItemMouseRelease(self, mousePosition, mouseButton)
|
|
|
|
local tile = clickedWidget:getTile(mousePosition)
|
|
|
|
local tile = clickedWidget:getTile(mousePosition)
|
|
|
|
if tile then
|
|
|
|
if tile then
|
|
|
|
local thing = tile:getTopMoveThing()
|
|
|
|
local thing = tile:getTopMoveThing()
|
|
|
|
if thing then
|
|
|
|
if thing and thing:isItem() then
|
|
|
|
item = thing:isItem()
|
|
|
|
item = thing
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
elseif clickedWidget:getClassName() == 'UIItem' and not clickedWidget:isVirtual() then
|
|
|
|
elseif clickedWidget:getClassName() == 'UIItem' and not clickedWidget:isVirtual() then
|
|
|
|