fixing spawn/update to respect value type instead of converting to string

(cherry picked from commit 7bf869fcade0a659dcd4d42ba205871d6dc32a3a)
This commit is contained in:
Tegiminis 2023-01-04 16:50:46 -08:00
parent 32c643a45b
commit 0ec21154e9

View file

@ -713,7 +713,7 @@ def batch_update_objects_with_prototype(
def _init(val, typ): def _init(val, typ):
return init_spawn_value( return init_spawn_value(
val, val,
str, typ,
caller=caller, caller=caller,
prototype=new_prototype, prototype=new_prototype,
protfunc_raise_errors=protfunc_raise_errors, protfunc_raise_errors=protfunc_raise_errors,