From dffa1da01211b3270f7328cbab9fdffe53f68ac1 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 28 Jun 2016 10:44:38 -0300 Subject: [PATCH] Fix extends issue, closes #4026 (cherry picked from commit 565bb3afcc207aea6608bb119e21c6833f1b87b3) --- modules/gdscript/gd_compiler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gdscript/gd_compiler.cpp b/modules/gdscript/gd_compiler.cpp index d8c0587226c..10c54435e43 100644 --- a/modules/gdscript/gd_compiler.cpp +++ b/modules/gdscript/gd_compiler.cpp @@ -1470,7 +1470,8 @@ Error GDCompiler::_parse_class(GDScript *p_script,GDScript *p_owner,const GDPars String sub = p_class->extends_class[i]; if (script->subclasses.has(sub)) { - script=script->subclasses[sub]; + Ref