#5689 moved _pending to beginning of function

This commit is contained in:
Sebastian Fast 2021-05-13 10:52:06 +02:00
parent 699e81e008
commit df9f367b95

View file

@ -123,6 +123,8 @@ var TextureManager = new Class({
*/
boot: function ()
{
this._pending = 3;
this.on(Events.LOAD, this.updatePending, this);
this.on(Events.ERROR, this.updatePending, this);
@ -132,8 +134,6 @@ var TextureManager = new Class({
this.addBase64('__MISSING', config.missingImage);
this.addBase64('__WHITE', config.whiteImage);
this._pending = 3;
this.game.events.once(GameEvents.DESTROY, this.destroy, this);
},