From c9ad370f2025dc2fd1f5803546d6d08478e562e6 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Wed, 15 Jun 2022 17:28:40 +0300 Subject: Add a null checking to `GDScript::_super_implicit_constructor` --- modules/gdscript/gdscript.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/gdscript') diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 99460252d7..64258ee8d3 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -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); } -- cgit v1.2.3