Fix: editor crash on super constructor called
Fix: #39909
(cherry picked from commit 023b3f2786
)
This commit is contained in:
parent
1f886d1f31
commit
9ce1fe59ea
|
@ -4039,6 +4039,9 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
||||||
|
|
||||||
current_function = function;
|
current_function = function;
|
||||||
Node *arg = _parse_and_reduce_expression(p_class, _static);
|
Node *arg = _parse_and_reduce_expression(p_class, _static);
|
||||||
|
if (!arg) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
current_function = NULL;
|
current_function = NULL;
|
||||||
cparent->arguments.push_back(arg);
|
cparent->arguments.push_back(arg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue