From 34e430e8a12d2e14f2805a264ce5b91fcfbd1bcc Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sun, 6 Jun 2021 03:06:59 -0600 Subject: [PATCH] Fix a typo in tileset detection --- js/tileset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/tileset.js b/js/tileset.js index 6743c0b..41343e6 100644 --- a/js/tileset.js +++ b/js/tileset.js @@ -3141,7 +3141,7 @@ export function infer_tileset_from_image(img, make_canvas) { // XXX this assumes square tiles, but i have written mountains of code that doesn't! if (w / h === aspect_ratio) { let image_data = ctx.getImageData(0, 0, canvas.width, canvas.height); - let did_anything = erase_tileset_background(image_data.data, layout); + let did_anything = erase_tileset_background(image_data, layout); let tw = Math.floor(canvas.width / w); let th = Math.floor(canvas.height / h); if (layout['#ident'] === 'tw-static') {