Skip to content

Commit 51f5a5f

Browse files
committed
Fixed a small bug with the adjustable value display
When the player is in the Inventory submenu, has the adjustable value display open, and pressed B, the value will no longer reset to the lowest acceptable value for 1 frame.
1 parent c601bdd commit 51f5a5f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ttyd-tools/rel/source/menu.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ void menuCheckButton()
218218
{
219219
if (getFreeSlotPointer())
220220
{
221+
MenuVar.MenuSecondaryValue = 0;
221222
MenuVar.SecondaryMenuOption = getHighestAdjustableValueDigit(tempMenuSelectedOption) - 1;
222223
MenuVar.Timer = 0;
223224
MenuVar.SelectedOption = CurrentMenuOptionCheck;

ttyd-tools/rel/source/menufunctions.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,8 @@ uint32_t adjustableValueButtonControls(uint32_t currentMenu)
12591259
{
12601260
if (MenuVar.SelectedOption == ADD_BY_ID)
12611261
{
1262-
resetAndCloseSecondaryMenu();
1262+
MenuVar.Timer = 0;
1263+
closeSecondaryMenu();
12631264
}
12641265
else // (MenuVar.SelectedOption == CHANGE_BY_ID)
12651266
{

0 commit comments

Comments
 (0)