summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-05-23 13:29:38 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-05-23 13:29:38 +0200
commit8a6933afb1c8a5e70fbc580a5d06b1f798f760a9 (patch)
tree16c706e5ccb2a48e7f3bfc7e5c015fc43ba2129a
parent29d9eb02b9b96df9542523665947bc7b18ec80b2 (diff)
parent7caabd939867ac55db8a8c3973442b8a385762b7 (diff)
Merge pull request #4772 from iap-mutant/PR-fix4748
Fix #4748: proper call to base class function
-rw-r--r--modules/gdscript/gd_script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp
index cd5e35db31..b1919b3468 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) {