Browse Source

Merge pull request #4772 from iap-mutant/PR-fix4748

Fix #4748: proper call to base class function
Rémi Verschelde 9 years ago
parent
commit
8a6933afb1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gdscript/gd_script.cpp

+ 1 - 1
modules/gdscript/gd_script.cpp

@@ -812,7 +812,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
 
 
 				if (E) {
 				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()) {
 				} else if (gds->native.ptr()) {
 
 
 					if (*methodname!=GDScriptLanguage::get_singleton()->strings._init) {
 					if (*methodname!=GDScriptLanguage::get_singleton()->strings._init) {