v0.8.1: fixed crashes caused by hero select not loading badges

This commit is contained in:
Evan Debenham 2020-06-10 17:49:59 -04:00
parent f2d80d7d97
commit 3ce7d49991

View File

@ -30,6 +30,7 @@ import com.shatteredpixel.shatteredpixeldungeon.SPDSettings;
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon; import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroSubClass; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroSubClass;
import com.shatteredpixel.shatteredpixeldungeon.journal.Journal;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages; import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite; import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
@ -72,6 +73,9 @@ public class HeroSelectScene extends PixelScene {
public void create() { public void create() {
super.create(); super.create();
Badges.loadGlobal();
Journal.loadGlobal();
background = new Image(HeroClass.WARRIOR.splashArt()){ background = new Image(HeroClass.WARRIOR.splashArt()){
@Override @Override
public void update() { public void update() {