Fix crash when updating name before info UI is initialized
parent
94b43b9dc5
commit
0741478d24
|
@ -250,6 +250,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.name = getFusedSpeciesName(this.species.getName(this.formIndex), this.fusionSpecies.getName(this.fusionFormIndex));
|
this.name = getFusedSpeciesName(this.species.getName(this.formIndex), this.fusionSpecies.getName(this.fusionFormIndex));
|
||||||
|
if (this.battleInfo)
|
||||||
this.updateInfo(true);
|
this.updateInfo(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue