summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_analyzer.cpp
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2022-03-22 08:27:03 +0300
committerGitHub <noreply@github.com>2022-03-22 08:27:03 +0300
commit6cba2143dee0118036ed7b6a79c81011a10d9080 (patch)
treef48f0b6254fea42ad67a0d9808c045a0388822fe /modules/gdscript/gdscript_analyzer.cpp
parent7befa7234d1493909af93b6956895b27840034e3 (diff)
parentd009d96a9261a90d3879e519099ff5f286cd21c6 (diff)
downloadredot-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.cpp1
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++];