Merge pull request #62071 from Chaosus/gds_null_check_implicit_constructor

Add a null checking to `GDScript::_super_implicit_constructor`
This commit is contained in:
Yuri Rubinsky 2022-06-15 20:59:46 +03:00 committed by GitHub
commit eeb91cec46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,6 +128,7 @@ void GDScript::_super_implicit_constructor(GDScript *p_script, GDScriptInstance
return;
}
}
ERR_FAIL_NULL(p_script->implicit_initializer);
p_script->implicit_initializer->call(p_instance, nullptr, 0, r_error);
}