Skip to content

Commit 35a9bdc

Browse files
committed
Fixed loading of physics json data (old responseText reference)
1 parent ba05238 commit 35a9bdc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/loader/Loader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ Phaser.Loader.prototype = {
582582
for (var i = 0; i < this._fileList.length + 1; i++)
583583
{
584584
var file = this._fileList[i];
585+
585586
if (!file || (!file.loaded && !file.loading && file.type !== 'packfile'))
586587
{
587588
this._fileList.splice(i, 1, pack);
@@ -1973,7 +1974,7 @@ Phaser.Loader.prototype = {
19731974
break;
19741975

19751976
case 'physics':
1976-
var data = JSON.parse(this.responseText);
1977+
var data = JSON.parse(xhr.responseText);
19771978
this.game.cache.addPhysicsData(file.key, file.url, data, file.format);
19781979
break;
19791980

0 commit comments

Comments
 (0)