1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Merge branch 'fix_mouse_events' into 'master'

Fix a typo

See merge request OpenMW/openmw!1855
This commit is contained in:
Cody Glassman 2022-05-14 16:05:36 +00:00
commit 07849b7362

View File

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