mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Check for undefined to avoid a crash in the examples at phaser3-custom-build.
This commit is contained in:
parent
47d393ac29
commit
9ac03cd565
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ var SceneManager = new Class({
|
|||
sys.step(time, delta);
|
||||
}
|
||||
|
||||
if (sys.scenePlugin._target)
|
||||
if (sys.scenePlugin && sys.scenePlugin._target)
|
||||
{
|
||||
sys.scenePlugin.step(time, delta);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue