mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Added a check to avoid calling the function when doing dynamic loading after state is created.
This commit is contained in:
parent
1c65c48341
commit
bc00f924a7
1 changed files with 1 additions and 1 deletions
|
@ -589,7 +589,7 @@ Phaser.StateManager.prototype = {
|
|||
loadComplete: function () {
|
||||
|
||||
// Make sure to do load-update one last time before state is set to _created
|
||||
if(this.onLoadUpdateCallback)
|
||||
if (this._created === false && this.onLoadUpdateCallback)
|
||||
{
|
||||
this.onLoadUpdateCallback.call(this.callbackContext, this.game);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue