Merge branch 'fix_mouse_events' into 'master'

Fix a typo

See merge request OpenMW/openmw!1855
pull/3227/head
Cody Glassman 3 years ago
commit 07849b7362

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

Loading…
Cancel
Save