Skip to content

Commit

Permalink
Fix OutOfIndex crash on credits
Browse files Browse the repository at this point in the history
Use IntMaths.inRange util
  • Loading branch information
tlonny committed Jan 20, 2025
1 parent 7055af9 commit 47f4025
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public HomeCreditsComponent(IHomeChildComponentProvider provider) {
}

private ISpriteTemplate getSelectedAvatar() {
if(this.selectedRowIndex == -1) {
if(!IntMaths.inRange(CreditsRow.getSize(), this.selectedRowIndex)) {
return null;
}

Expand Down

0 comments on commit 47f4025

Please sign in to comment.