From 221909697ac233e0e5599ba317d45065d2a70d86 Mon Sep 17 00:00:00 2001 From: Buriburi Date: Fri, 20 Sep 2024 11:00:36 +0200 Subject: [PATCH] fixed error --- live2d/waifu-tips.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live2d/waifu-tips.js b/live2d/waifu-tips.js index 6865352..f93d86f 100644 --- a/live2d/waifu-tips.js +++ b/live2d/waifu-tips.js @@ -243,7 +243,7 @@ function loadWidget() { async function loadNextModel() { let modelId = localStorage.getItem("modelId"); if (!modelList) await loadModelList(); - let index = (++modelId >= modelList.models.length) ? 0 : modelId; + let index = (++modelId >= modelList.models_json_path.length) ? 0 : modelId; loadModel(index, 0, modelList.messages[index]); }