Handle 'object' case as indexOf

639c0235f9530f62c20b9d8af65e0974f638b938

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -0Showing whitespace changes
public/script.js+2 -0
@@ -6251,6 +6251,8 @@ export function setCharacterId(value) {
62516251 this_chid = !isNaN(parseInt(value)) ? value : undefined;
62526252 break;
62536253 case 'object':
6254+ this_chid = characters.indexOf(value) !== -1 ? String(characters.indexOf(value)) : undefined;
6255+ break;
62546256 case 'undefined':
62556257 this_chid = undefined;
62566258 break;