From a660eb597ba6290994a921318ffb8c565322d617 Mon Sep 17 00:00:00 2001 From: Yueyu Date: Thu, 9 Dec 2021 17:29:40 +0800 Subject: [PATCH] Fix unset `legacySprites` field in media.json breaks running --- src/tablet/MediaLib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tablet/MediaLib.js b/src/tablet/MediaLib.js index d60b041..81e69be 100644 --- a/src/tablet/MediaLib.js +++ b/src/tablet/MediaLib.js @@ -45,7 +45,7 @@ export default class MediaLib { path = parsedResult.path; samples = parsedResult.samples; sprites = parsedResult.sprites; - legacySprites = parsedResult.legacySprites; + legacySprites = parsedResult.legacySprites || []; backgrounds = parsedResult.backgrounds; sounds = parsedResult.sounds;