From e002827a200a13afdb80dfebbe25705f57792039 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Fri, 9 Aug 2013 16:56:38 +0100 Subject: [PATCH] Fixed load add --- Phaser/Game.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Phaser/Game.ts b/Phaser/Game.ts index b3ef70f5..7274d7bb 100644 --- a/Phaser/Game.ts +++ b/Phaser/Game.ts @@ -309,7 +309,7 @@ module Phaser { //this.physics = new Phaser.Physics.Manager(this); this.plugins = new Phaser.PluginManager(this, this); - this.load.onLoadComplete.addOnce(this.loadComplete, this); + this.load.onLoadComplete.add(this.loadComplete, this); this.setRenderer(Phaser.Types.RENDERER_CANVAS); @@ -464,6 +464,7 @@ module Phaser { else { // Start the loader going as we have something in the queue + this.load.onLoadComplete.add(this.loadComplete, this); this.load.start(); } }