Handle 'object' case as indexOf
| @@ -6251,6 +6251,8 @@ export function setCharacterId(value) { | ||
| 6251 | 6251 | this_chid = !isNaN(parseInt(value)) ? value : undefined; |
| 6252 | 6252 | break; |
| 6253 | 6253 | case 'object': |
| 6254 | + this_chid = characters.indexOf(value) !== -1 ? String(characters.indexOf(value)) : undefined; | |
| 6255 | + break; | |
| 6254 | 6256 | case 'undefined': |
| 6255 | 6257 | this_chid = undefined; |
| 6256 | 6258 | break; |