From 3bc6aa9c7d46eaa7589004a0b85d8c561d20f382 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sun, 28 Feb 2021 18:36:59 -0700 Subject: [PATCH] Fix a crash with slide_ignores when using the CC1 inventory --- js/game.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/game.js b/js/game.js index b6072dc..466b6dc 100644 --- a/js/game.js +++ b/js/game.js @@ -116,6 +116,8 @@ export class Tile { if (this.toolbelt) { for (let item of this.toolbelt) { + if (! item) + continue; let item_type = TILE_TYPES[item]; if (item_type.item_slide_ignores && item_type.item_slide_ignores.has(name)) return true;