From 608c02474913ac18e1af8f05901f59cd2c2ace5e Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sat, 13 Apr 2024 19:06:33 -0400 Subject: [PATCH] Fix crash on starter select when scrolling generations --- src/ui/starter-select-ui-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/starter-select-ui-handler.ts b/src/ui/starter-select-ui-handler.ts index 1604de259..66d58c7d1 100644 --- a/src/ui/starter-select-ui-handler.ts +++ b/src/ui/starter-select-ui-handler.ts @@ -1480,7 +1480,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler { } updateStarterValueLabel(cursor: integer): void { - const speciesId = this.genSpecies[this.genCursor][cursor].speciesId; + const speciesId = this.genSpecies[this.getGenCursorWithScroll()][cursor].speciesId; const baseStarterValue = speciesStarters[speciesId]; const starterValue = this.scene.gameData.getSpeciesStarterValue(speciesId); let valueStr = starterValue.toString();