Handle 'object' case as indexOf

This commit is contained in:
Cohee 2025-02-28 23:37:35 +02:00
parent 284bac9b49
commit 639c0235f9

View File

@ -6251,6 +6251,8 @@ export function setCharacterId(value) {
this_chid = !isNaN(parseInt(value)) ? value : undefined; this_chid = !isNaN(parseInt(value)) ? value : undefined;
break; break;
case 'object': case 'object':
this_chid = characters.indexOf(value) !== -1 ? String(characters.indexOf(value)) : undefined;
break;
case 'undefined': case 'undefined':
this_chid = undefined; this_chid = undefined;
break; break;