menusys: Correct GetMenuExitBackButton returncode (#1646)

This commit is contained in:
Adrián 2021-11-21 01:52:40 +01:00 committed by GitHub
parent 1c30b88069
commit 4e4c2a7bb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)