fix nullpointer for mover storyboard

This commit is contained in:
yugecin
2017-01-21 13:29:10 +01:00
parent 4dc8b34557
commit b2f85edb13
2 changed files with 8 additions and 14 deletions

View File

@@ -333,6 +333,8 @@ public class Game extends ComplexOpsuState {
@Override
public void revalidate() {
super.revalidate();
// create offscreen graphics
try {
offscreen = new Image(displayContainer.width, displayContainer.height);
@@ -1445,10 +1447,6 @@ public class Game extends ComplexOpsuState {
@Override
public void enter() {
super.enter();
displayContainer.drawCursor = false;
overlays.clear();
if (Options.isEnableSB()) {
overlays.add(optionsOverlay);
@@ -1458,6 +1456,10 @@ public class Game extends ComplexOpsuState {
optionsOverlay.revalidate();
}
super.enter();
displayContainer.drawCursor = false;
isInGame = true;
if (!skippedToCheckpoint) {
UI.enter();