Fix hotkeys error when selecting items from map

master
Eduardo Bart 12 years ago
parent 0e80d1bb0d
commit d1812ae695

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

Loading…
Cancel
Save