fix some client shzi"

This commit is contained in:
ntr
2018-12-22 18:29:48 +11:00
parent 42bf2a058a
commit b556fec8e2
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ class Menu extends Phaser.Scene {
Object.keys(this.scene.manager.keys).forEach((key) => {
if (!ACTIVE_SCENES.includes(key)) {
// Remove listeners and scene
this.scene.get(key).cleanUp();
if (this.scene.get(key).cleanUp) this.scene.get(key).cleanUp();
}
});
}