Fix crash on starter select when scrolling generations

This commit is contained in:
Flashfyre 2024-04-13 19:06:33 -04:00
parent 824a73ef71
commit 608c024749
1 changed files with 1 additions and 1 deletions

View File

@ -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();