mirror of
https://github.com/photonstorm/phaser
synced 2024-11-17 02:08:40 +00:00
Exit if scene was removed during create()
This commit is contained in:
parent
89fe81a5ab
commit
9a3340ff7c
1 changed files with 12 additions and 7 deletions
|
@ -610,6 +610,11 @@ var SceneManager = new Class({
|
||||||
settings.status = CONST.CREATING;
|
settings.status = CONST.CREATING;
|
||||||
|
|
||||||
scene.create.call(scene, settings.data);
|
scene.create.call(scene, settings.data);
|
||||||
|
|
||||||
|
if (settings.status === CONST.DESTROYED)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.isTransition)
|
if (settings.isTransition)
|
||||||
|
|
Loading…
Reference in a new issue