Skip to content

Commit 45944d6

Browse files
committed
Fix for phaserjs#1914
1 parent a7f1739 commit 45944d6

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/loader/Cache.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ Phaser.Cache = function (game) {
6262
tilemap: {},
6363
binary: {},
6464
bitmapData: {},
65-
bitmapFont: {
66-
image: {},
67-
data: {}
68-
},
65+
bitmapFont: {},
6966
shader: {},
7067
renderTexture: {}
7168
};
@@ -325,7 +322,7 @@ Phaser.Cache.prototype = {
325322
decoded = true;
326323
}
327324

328-
this._cache.sounds[key] = {
325+
this._cache.sound[key] = {
329326
url: url,
330327
data: data,
331328
isDecoding: false,
@@ -335,7 +332,7 @@ Phaser.Cache.prototype = {
335332
locked: this.game.sound.touchLocked
336333
};
337334

338-
this._resolveURL(url, this._cache.sounds[key]);
335+
this._resolveURL(url, this._cache.sound[key]);
339336

340337
},
341338

0 commit comments

Comments
 (0)