diff --git a/js/plugins/IconDescription.js b/js/plugins/IconDescription.js index 0e976cc..50eaeec 100644 --- a/js/plugins/IconDescription.js +++ b/js/plugins/IconDescription.js @@ -137,6 +137,9 @@ const param = PluginManagerEx.createParameter(script); function findIconCaptionParam(iconIndex) { + if (!param.list || !Array.isArray(param.list)) { + return null; + } return param.list.find(desc => desc.iconIndex === iconIndex); } diff --git a/package.json b/package.json index 6961b9a..1db396e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "rmmz-game", "main": "index.html", - "chromium-args": "--force-color-profile=srgb --disable-devtools", + "chromium-args": "--force-color-profile=srgb", "window": { "title": "Unholy maiden Ver.1.0.4", "width": 1280,