v0.4.2: fixed a crash bug in gamescene
This commit is contained in:
parent
3c1e130b59
commit
70d2519f16
|
@ -718,6 +718,7 @@ public class GameScene extends PixelScene {
|
||||||
public static void afterObserve() {
|
public static void afterObserve() {
|
||||||
if (scene != null) {
|
if (scene != null) {
|
||||||
for (Mob mob : Dungeon.level.mobs) {
|
for (Mob mob : Dungeon.level.mobs) {
|
||||||
|
if (mob.sprite != null)
|
||||||
mob.sprite.visible = Dungeon.visible[mob.pos];
|
mob.sprite.visible = Dungeon.visible[mob.pos];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user