Skip to content

Commit 66a9bec

Browse files
committed
Only set data if it's not undefined.
1 parent bf368ab commit 66a9bec

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/scene/Systems.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ var Systems = new Class({
491491

492492
/**
493493
* Start this Scene running and rendering.
494+
* Called automatically by the SceneManager.
494495
*
495496
* @method Phaser.Scenes.Systems#start
496497
* @since 3.0.0
@@ -499,9 +500,12 @@ var Systems = new Class({
499500
*/
500501
start: function (data)
501502
{
502-
this.settings.status = CONST.START;
503+
if (data)
504+
{
505+
this.settings.data = data;
506+
}
503507

504-
this.settings.data = data;
508+
this.settings.status = CONST.START;
505509

506510
this.settings.active = true;
507511
this.settings.visible = true;

0 commit comments

Comments
 (0)