From 1766f89c4d45423fe13f2a8e8411b518b2910e4f Mon Sep 17 00:00:00 2001 From: uramer Date: Sat, 14 May 2022 16:55:11 +0200 Subject: [PATCH] Fix a typo --- components/lua_ui/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lua_ui/widget.cpp b/components/lua_ui/widget.cpp index bd9e47ab34..49d69f8fd1 100644 --- a/components/lua_ui/widget.cpp +++ b/components/lua_ui/widget.cpp @@ -168,7 +168,7 @@ namespace LuaUi int sdlButton = SDLUtil::myGuiMouseButtonToSdl(button); table["position"] = position; table["offset"] = offset; - if (sdlButton == 0) // nil if no button was pressed + if (sdlButton != 0) // nil if no button was pressed table["button"] = sdlButton; return table; }