Skip to content

Commit 568b04c

Browse files
committed
Loader typo in new loader structure
1 parent ccdad43 commit 568b04c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/loader/filetypes/TilemapJSONFile.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ var TilemapJSONFile = function (key, url, path, format, xhrSettings)
1717
};
1818

1919
// When registering a factory function 'this' refers to the Loader context.
20-
//
20+
//
2121
// There are several properties available to use:
22-
//
22+
//
2323
// this.scene - a reference to the Scene that owns the GameObjectFactory
2424

2525
FileTypesManager.register('tilemapTiledJSON', function (key, url, xhrSettings)
@@ -48,12 +48,12 @@ FileTypesManager.register('tilemapWeltmeister', function (key, url, xhrSettings)
4848
for (var i = 0; i < key.length; i++)
4949
{
5050
// If it's an array it has to be an array of Objects, so we get everything out of the 'key' object
51-
this.addFile(TilemapJSONFile(key[i], url, this.path, TILEMAP_FORMATS.WELTMEISTER.TILED_JSON, xhrSettings));
51+
this.addFile(TilemapJSONFile(key[i], url, this.path, TILEMAP_FORMATS.WELTMEISTER, xhrSettings));
5252
}
5353
}
5454
else
5555
{
56-
this.addFile(TilemapJSONFile(key, url, this.path, TILEMAP_FORMATS.WELTMEISTER.TILED_JSON, xhrSettings));
56+
this.addFile(TilemapJSONFile(key, url, this.path, TILEMAP_FORMATS.WELTMEISTER, xhrSettings));
5757
}
5858

5959
// For method chaining

0 commit comments

Comments
 (0)