Skip to content

Commit

Permalink
unhardcode 64 in pause_badges.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Rainchus committed Mar 9, 2024
1 parent 1154132 commit c258024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pause/pause_badges.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ void pause_badges_draw_contents(MenuPanel* menu, s32 baseX, s32 baseY, s32 width
posY = pause_badges_get_pos_y(pageIndex, itemIndex);
isNone = badgeID == BADGE_NONE_STANDIN;

for (j = 0; j < 64; equippedBadges++, j++) {
for (j = 0; j < ARRAY_COUNT(gPlayerData.equippedBadges); equippedBadges++, j++) {
if (badgeID == *equippedBadges) {
isEquipped = TRUE;
break;
Expand Down

0 comments on commit c258024

Please sign in to comment.