mirror of
https://github.com/pret/pokeemerald.git
synced 2026-04-26 01:19:29 -05:00
Merge pull request #2177 from NTx86/gba-fix-list-menu-item-alloc
Fix sScrollableMultichoice_ListMenuItem allocation size magic number
This commit is contained in:
commit
cc7327d620
|
|
@ -2555,7 +2555,7 @@ static void Task_ShowScrollableMultichoice(u8 taskId)
|
|||
sScrollableMultichoice_ItemSpriteId = MAX_SPRITES;
|
||||
FillFrontierExchangeCornerWindowAndItemIcon(task->tScrollMultiId, 0);
|
||||
ShowBattleFrontierTutorWindow(task->tScrollMultiId, 0);
|
||||
sScrollableMultichoice_ListMenuItem = AllocZeroed(task->tNumItems * 8);
|
||||
sScrollableMultichoice_ListMenuItem = AllocZeroed(task->tNumItems * sizeof(struct ListMenuItem));
|
||||
sFrontierExchangeCorner_NeverRead = 0;
|
||||
InitScrollableMultichoice();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user