Restored some tItemCount instances as requested.

This commit is contained in:
AsparagusEduardo 2020-03-08 22:11:19 -03:00 committed by huderlem
parent 130929a7a4
commit c73fdb8954

View file

@ -2175,19 +2175,19 @@ void Task_WallyTutorialBagMenu(u8 taskId)
if (!gPaletteFade.active) if (!gPaletteFade.active)
{ {
switch (tItemCount) switch (data[8])
{ {
case 0x66: case 0x66:
PlaySE(SE_SELECT); PlaySE(SE_SELECT);
SwitchBagPocket(taskId, 1, 0); SwitchBagPocket(taskId, 1, 0);
tItemCount++; data[8]++;
break; break;
case 0xCC: case 0xCC:
PlaySE(SE_SELECT); PlaySE(SE_SELECT);
BagMenu_PrintCursor_(data[0], 2); BagMenu_PrintCursor_(data[0], 2);
gSpecialVar_ItemId = ITEM_POKE_BALL; gSpecialVar_ItemId = ITEM_POKE_BALL;
sub_81AC644(taskId); sub_81AC644(taskId);
tItemCount++; data[8]++;
break; break;
case 0x132: case 0x132:
PlaySE(SE_SELECT); PlaySE(SE_SELECT);
@ -2197,7 +2197,7 @@ void Task_WallyTutorialBagMenu(u8 taskId)
Task_FadeAndCloseBagMenu(taskId); Task_FadeAndCloseBagMenu(taskId);
break; break;
default: default:
tItemCount++; data[8]++;
break; break;
} }
} }