mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-24 06:17:40 -04:00
Fix crash when updating name before info UI is initialized
This commit is contained in:
parent
94b43b9dc5
commit
0741478d24
1 changed files with 2 additions and 1 deletions
|
@ -250,7 +250,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||
return;
|
||||
}
|
||||
this.name = getFusedSpeciesName(this.species.getName(this.formIndex), this.fusionSpecies.getName(this.fusionFormIndex));
|
||||
this.updateInfo(true);
|
||||
if (this.battleInfo)
|
||||
this.updateInfo(true);
|
||||
}
|
||||
|
||||
abstract isPlayer(): boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue