v0.3.4c: added a safety check to gamescene updating
This commit is contained in:
@@ -392,7 +392,7 @@ public class GameScene extends PixelScene {
|
||||
|
||||
@Override
|
||||
public synchronized void update() {
|
||||
if (Dungeon.hero == null) {
|
||||
if (Dungeon.hero == null || scene == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user