From 76d32b549320b48fd5a57524bfcf4c3b7c57c8c7 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Wed, 1 Aug 2012 23:05:02 -0300 Subject: [PATCH] Fix click regression --- modules/game_interface/gameinterface.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/game_interface/gameinterface.lua b/modules/game_interface/gameinterface.lua index fa791b4d..cd4fa795 100644 --- a/modules/game_interface/gameinterface.lua +++ b/modules/game_interface/gameinterface.lua @@ -394,7 +394,7 @@ function processMouseAction(menuPosition, mouseButton, autoWalkPos, lookThing, u else if multiUseThing and keyboardModifiers == KeyboardNoModifier and mouseButton == MouseRightButton and not g_mouse.isPressed(MouseLeftButton) then local player = g_game.getLocalPlayer() - if creatureThing ~= player then + if creatureThing and creatureThing ~= player then g_game.attack(creatureThing) return true elseif multiUseThing:isContainer() then