summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2022-06-15 17:28:40 +0300
committerYuri Rubinsky <chaosus89@gmail.com>2022-06-15 17:28:40 +0300
commitc9ad370f2025dc2fd1f5803546d6d08478e562e6 (patch)
tree1f86e5212c7bae059eae9128c34a733eb5156c35 /modules
parent68b86220c806fa02d0d2b21d6561e7ea871e840e (diff)
Add a null checking to `GDScript::_super_implicit_constructor`
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}