v0.9.0: added a safety check to TalentsPane to fix rare crashes
This commit is contained in:
parent
12b7e47883
commit
c34c3cf82e
|
@ -64,8 +64,10 @@ public class TalentsPane extends ScrollPane {
|
|||
@Override
|
||||
public void upgradeTalent() {
|
||||
super.upgradeTalent();
|
||||
setupStars();
|
||||
TalentsPane.this.layout();
|
||||
if (parent != null) {
|
||||
setupStars();
|
||||
TalentsPane.this.layout();
|
||||
}
|
||||
}
|
||||
};
|
||||
buttons.add(btn);
|
||||
|
|
Loading…
Reference in New Issue
Block a user