diff options
author | Yuri Rubinsky <chaosus89@gmail.com> | 2022-03-22 08:27:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 08:27:03 +0300 |
commit | 6cba2143dee0118036ed7b6a79c81011a10d9080 (patch) | |
tree | f48f0b6254fea42ad67a0d9808c045a0388822fe /modules/gdscript/gdscript_analyzer.cpp | |
parent | 7befa7234d1493909af93b6956895b27840034e3 (diff) | |
parent | d009d96a9261a90d3879e519099ff5f286cd21c6 (diff) | |
download | redot-engine-6cba2143dee0118036ed7b6a79c81011a10d9080.tar.gz |
Merge pull request #59056 from Chaosus/gds_fix_extends_crash
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 35ae933a21..af3d65d4d6 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -277,6 +277,7 @@ Error GDScriptAnalyzer::resolve_inheritance(GDScriptParser::ClassNode *p_class, base = parser->get_parser()->head->get_datatype(); } else { if (p_class->extends.is_empty()) { + push_error("Could not resolve an empty super class path.", p_class); return ERR_PARSE_ERROR; } const StringName &name = p_class->extends[extends_index++]; |