v0.3.4c: added a safety check to gamescene updating
This commit is contained in:
parent
2292d71d8a
commit
cd98796d39
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user