mGUI: Pressing confirm should only advance valid states if the data is a string

This commit is contained in:
Vicki Pfau 2021-07-01 22:14:47 -07:00
parent 801033020a
commit ece0e168ef
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ enum GUIMenuExitReason GUIShowMenu(struct GUIParams* params, struct GUIMenu* men
if (reason != GUI_MENU_EXIT_BACK) {
return reason;
}
} else if ((*item)->validStates && !(*item)->data.v.p) {
} else if ((*item)->validStates && GUIVariantIsString((*item)->data)) {
_itemNext(*item, true);
} else {
return GUI_MENU_EXIT_ACCEPT;