Fix hotkeys error when selecting items from map
This commit is contained in:
parent
0e80d1bb0d
commit
d1812ae695
|
@ -149,8 +149,8 @@ function onChooseItemMouseRelease(self, mousePosition, mouseButton)
|
|||
local tile = clickedWidget:getTile(mousePosition)
|
||||
if tile then
|
||||
local thing = tile:getTopMoveThing()
|
||||
if thing then
|
||||
item = thing:isItem()
|
||||
if thing and thing:isItem() then
|
||||
item = thing
|
||||
end
|
||||
end
|
||||
elseif clickedWidget:getClassName() == 'UIItem' and not clickedWidget:isVirtual() then
|
||||
|
|
Loading…
Reference in New Issue