diff options
author | George Marques <george@gmarqu.es> | 2020-08-31 20:42:00 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2020-09-01 09:26:28 -0300 |
commit | c8e10aa20bf383efc948103e0b591e7ccaea7c16 (patch) | |
tree | a5c6ca490ad002d37a360fb395189fe5696512e9 /modules/gdscript/gdscript_analyzer.cpp | |
parent | 164cc8705b5eab994df3543cf70a62ce1589d9de (diff) | |
download | redot-engine-c8e10aa20bf383efc948103e0b591e7ccaea7c16.tar.gz |
GDScript: Properly set class inheritance for global classes
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 6b2ee9f8d6..1332f5a99a 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -213,6 +213,7 @@ Error GDScriptAnalyzer::resolve_inheritance(GDScriptParser::ClassNode *p_class, push_error(vformat(R"(Could not resolve super class inheritance from "%s".)", name), p_class); return err; } + base = parser->get_parser()->head->get_datatype(); } } else if (ProjectSettings::get_singleton()->has_autoload(name) && ProjectSettings::get_singleton()->get_autoload(name).is_singleton) { const ProjectSettings::AutoloadInfo &info = ProjectSettings::get_singleton()->get_autoload(name); |