Review changes from https://github.com/pret/pokeemerald/pull/1721
This commit is contained in:
1 parent
19a521fe33
commit
95b16a2391
2 files changed
+2
-4
No files matched your search
@@ -58,7 +58,7 @@ static const u8 *const sMenuTexts[] = {
|
||||
|
||||
void SetMenuText(u8 textId)
|
||||
{
|
||||
if (gPSSData->menuItemsCount < MAX_MENU_ITEMS)
|
||||
if (gPSSData->menuItemsCount < ARRAY_COUNT(gPSSData->menuItems))
|
||||
{
|
||||
u8 len;
|
||||
struct StorageMenu *menu = &gPSSData->menuItems[gPSSData->menuItemsCount];
|
||||
|
||||
Reference in new issue
Block a user