diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index cd5e35db312..b1919b3468e 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -812,7 +812,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a if (E) { - *dst=((GDFunction*)&E->get())->call(p_instance,(const Variant**)argptrs,argc,err); + *dst=E->get()->call(p_instance,(const Variant**)argptrs,argc,err); } else if (gds->native.ptr()) { if (*methodname!=GDScriptLanguage::get_singleton()->strings._init) {