From 3b0c28f05bc187804a42e45300bae420c374992f Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Mon, 29 Apr 2024 12:02:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=B6=E7=BB=AD=E4=B8=8A=E4=B8=AA=E5=88=86?= =?UTF-8?q?=E6=94=AF=E7=9A=84bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/game/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noname/game/index.js b/noname/game/index.js index 61b6062b1..112d1de29 100644 --- a/noname/game/index.js +++ b/noname/game/index.js @@ -1472,7 +1472,7 @@ export class Game { if (result) return result; if (!name) return result; if (filter(name)) return name; - let tempname = (get.character(name).trashBin || []).find(tag => tag.startsWith("tempname:")); + let tempname = ((get.character(name) || {}).trashBin || []).find(tag => tag.startsWith("tempname:")); if (!tempname) return result; tempname = tempname .split(":")