From 565bb3afcc207aea6608bb119e21c6833f1b87b3 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 --- modules/gdscript/gd_compiler.cpp | 4 +++- modules/gdscript/gd_script.cpp | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/gdscript/gd_compiler.cpp b/modules/gdscript/gd_compiler.cpp index 7481eac6200..d9bbe42979d 100644 --- a/modules/gdscript/gd_compiler.cpp +++ b/modules/gdscript/gd_compiler.cpp @@ -1497,7 +1497,8 @@ Error GDCompiler::_parse_class(GDScript *p_script, GDScript *p_owner, const GDPa String sub = p_class->extends_class[i]; if (script->subclasses.has(sub)) { - script=script->subclasses[sub]; + Ref