Check for undefined to avoid a crash in the examples at phaser3-custom-build.

This commit is contained in:
Oliver Kisielius 2023-12-13 15:06:21 -05:00
parent 47d393ac29
commit 9ac03cd565

View file

@ -577,7 +577,7 @@ var SceneManager = new Class({
sys.step(time, delta); sys.step(time, delta);
} }
if (sys.scenePlugin._target) if (sys.scenePlugin && sys.scenePlugin._target)
{ {
sys.scenePlugin.step(time, delta); sys.scenePlugin.step(time, delta);
} }