Skip to content

Commit f654b24

Browse files
committed
Inventory menu fix
Properly reset the function return code variable when pressing B. This also fixes the text of the items not changing when being selected.
1 parent ceca73b commit f654b24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ttyd-tools/rel/source/menufunctions.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ void closeSecondaryMenu()
4242

4343
// Close the menu
4444
SelectedOption = 0;
45+
46+
// Reset the function return code
47+
FunctionReturnCode = 0;
4548
}
4649

4750

0 commit comments

Comments
 (0)