From 7caabd939867ac55db8a8c3973442b8a385762b7 Mon Sep 17 00:00:00 2001 From: Ignacio Armenteros Date: Mon, 23 May 2016 11:49:51 +0200 Subject: [PATCH] Fix #4748: proper call to base class function --- modules/gdscript/gd_script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {