Fix crash on starter select when scrolling generations
parent
824a73ef71
commit
608c024749
|
@ -1480,7 +1480,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
updateStarterValueLabel(cursor: integer): void {
|
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 baseStarterValue = speciesStarters[speciesId];
|
||||||
const starterValue = this.scene.gameData.getSpeciesStarterValue(speciesId);
|
const starterValue = this.scene.gameData.getSpeciesStarterValue(speciesId);
|
||||||
let valueStr = starterValue.toString();
|
let valueStr = starterValue.toString();
|
||||||
|
|
Loading…
Reference in New Issue