From f35392fd8db0e5151fd66694fcb1d2ac009cb35f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 2 Nov 2016 18:49:39 -0400 Subject: [PATCH] v0.4.3b: gamescene now sets its static reference after initialization --- .../shatteredpixeldungeon/scenes/GameScene.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java index 90e17eb09..86361956a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java @@ -156,8 +156,6 @@ public class GameScene extends PixelScene { super.create(); Camera.main.zoom( GameMath.gate(minZoom, defaultZoom + ShatteredPixelDungeon.zoom(), maxZoom)); - scene = this; - terrain = new Group(); add( terrain ); @@ -380,6 +378,8 @@ public class GameScene extends PixelScene { fadeIn(); } + + scene = this; } public void destroy() {