From 5db571bbc678673028d744c50611ddaae61b2ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n?= <15228896+Adrianilloo@users.noreply.github.com> Date: Sun, 21 Nov 2021 01:52:40 +0100 Subject: [PATCH] menusys: Correct GetMenuExitBackButton returncode (#1646) --- core/logic/smn_menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/logic/smn_menus.cpp b/core/logic/smn_menus.cpp index 9c6c130b..b368c898 100644 --- a/core/logic/smn_menus.cpp +++ b/core/logic/smn_menus.cpp @@ -1014,7 +1014,7 @@ static cell_t GetMenuExitBackButton(IPluginContext *pContext, const cell_t *para return pContext->ThrowNativeError("Menu handle %x is invalid (error %d)", hndl, err); } - return ((menu->GetMenuOptionFlags() & MENUFLAG_BUTTON_EXITBACK) == MENUFLAG_BUTTON_EXIT) ? 1 : 0; + return ((menu->GetMenuOptionFlags() & MENUFLAG_BUTTON_EXITBACK) == MENUFLAG_BUTTON_EXITBACK) ? 1 : 0; } static cell_t SetMenuExitButton(IPluginContext *pContext, const cell_t *params)