Skip to content

Commit 70c64eb

Browse files
committed
Fixed misleading error message
Shouldn't it be `tileset` instead of `key`? We can't find any entry with the name `tileset` in the JSON file. The `key` hasn't anything to do with the JSON file, that is our tilesset image we loaded with thaser.
1 parent 83948f5 commit 70c64eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tilemap/Tilemap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Phaser.Tilemap.prototype = {
304304

305305
if (idx === null && this.format === Phaser.Tilemap.TILED_JSON)
306306
{
307-
console.warn('Phaser.Tilemap.addTilesetImage: No data found in the JSON matching the tileset name: "' + key + '"');
307+
console.warn('Phaser.Tilemap.addTilesetImage: No data found in the JSON matching the tileset name: "' + tileset + '"');
308308
return null;
309309
}
310310

0 commit comments

Comments
 (0)