Fix click regression

This commit is contained in:
Eduardo Bart 2012-08-01 23:05:02 -03:00
parent 8a5195430a
commit 76d32b5493
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ function processMouseAction(menuPosition, mouseButton, autoWalkPos, lookThing, u
else else
if multiUseThing and keyboardModifiers == KeyboardNoModifier and mouseButton == MouseRightButton and not g_mouse.isPressed(MouseLeftButton) then if multiUseThing and keyboardModifiers == KeyboardNoModifier and mouseButton == MouseRightButton and not g_mouse.isPressed(MouseLeftButton) then
local player = g_game.getLocalPlayer() local player = g_game.getLocalPlayer()
if creatureThing ~= player then if creatureThing and creatureThing ~= player then
g_game.attack(creatureThing) g_game.attack(creatureThing)
return true return true
elseif multiUseThing:isContainer() then elseif multiUseThing:isContainer() then