summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorThakee Nathees <thakeenathees@gmail.com>2020-07-04 16:06:07 +0530
committerThakee Nathees <thakeenathees@gmail.com>2020-07-04 16:06:07 +0530
commit023b3f2786a87342e6d3893c12a04ab589f6c79a (patch)
treea33d5a0dbb752823a54043b7f3e6b4942d29a67d /modules/gdscript
parent0a8dbe7f75f2999e0f73af83dda3510c965f2b94 (diff)
Fix: editor crash on super constructor called
Fix: #39909
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gdscript_parser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index ca452bf008..63da849723 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -4072,6 +4072,9 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
while (true) {
current_function = function;
Node *arg = _parse_and_reduce_expression(p_class, _static);
+ if (!arg) {
+ return;
+ }
current_function = nullptr;
cparent->arguments.push_back(arg);