Fix: editor crash on super constructor called

Fix: #39909
(cherry picked from commit 023b3f2786)
This commit is contained in:
Thakee Nathees 2020-07-04 16:06:07 +05:30 committed by Rémi Verschelde
parent 1f886d1f31
commit 9ce1fe59ea

View file

@ -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);