mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-30 04:37:14 +00:00
Fix crash on starter select when scrolling generations
This commit is contained in:
parent
824a73ef71
commit
608c024749
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user