diff --git a/core/object/make_virtuals.py b/core/object/make_virtuals.py index 88d556ef82b7..ae70981f72ca 100644 --- a/core/object/make_virtuals.py +++ b/core/object/make_virtuals.py @@ -121,7 +121,9 @@ def generate_version(argcount, const=False, returns=False): callargtext += f"m_type{i + 1} arg{i + 1}" callsiargs += f"Variant(arg{i + 1})" callsiargptrs += f"&vargs[{i}]" - callptrargs += f"PtrToArg::EncodeT argval{i + 1} = arg{i + 1};\\\n" + callptrargs += ( + f"PtrToArg::EncodeT argval{i + 1} = (PtrToArg::EncodeT)arg{i + 1};\\\n" + ) callptrargsptr += f"&argval{i + 1}" if method_info: method_info += "\\\n\t\t"