Skip to content

Commit e002827

Browse files
committed
Fixed load add
1 parent c2f0128 commit e002827

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Phaser/Game.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ module Phaser {
309309
//this.physics = new Phaser.Physics.Manager(this);
310310
this.plugins = new Phaser.PluginManager(this, this);
311311

312-
this.load.onLoadComplete.addOnce(this.loadComplete, this);
312+
this.load.onLoadComplete.add(this.loadComplete, this);
313313

314314
this.setRenderer(Phaser.Types.RENDERER_CANVAS);
315315

@@ -464,6 +464,7 @@ module Phaser {
464464
else
465465
{
466466
// Start the loader going as we have something in the queue
467+
this.load.onLoadComplete.add(this.loadComplete, this);
467468
this.load.start();
468469
}
469470
}

0 commit comments

Comments
 (0)