延续上个分支的bugfix

This commit is contained in:
mengxinzxz 2024-04-29 12:02:28 +08:00
parent 302cebabf3
commit 3b0c28f05b
1 changed files with 1 additions and 1 deletions

View File

@ -1472,7 +1472,7 @@ export class Game {
if (result) return result; if (result) return result;
if (!name) return result; if (!name) return result;
if (filter(name)) return name; 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; if (!tempname) return result;
tempname = tempname tempname = tempname
.split(":") .split(":")