Merge pull request #6694 from Byvire/master

Check for undefined to avoid a crash in the examples at phaser3-custo…
This commit is contained in:
Robert Kowalski 2024-01-29 15:27:08 -05:00 committed by GitHub
commit ddc43fcbee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}