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