Fix hotkeys error when selecting items from map

This commit is contained in:
Eduardo Bart 2012-10-04 16:08:12 -03:00
parent 0e80d1bb0d
commit d1812ae695
1 changed files with 2 additions and 2 deletions

View File

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