From 0384474f8376bd6e7a06d935fa6a7a152ab525ca Mon Sep 17 00:00:00 2001 From: Manuel Dun Date: Mon, 25 Oct 2021 19:44:22 -0400 Subject: [PATCH] Added error macro to ensure non null parameter --- scene/resources/skeleton_modification_stack_3d.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/resources/skeleton_modification_stack_3d.cpp b/scene/resources/skeleton_modification_stack_3d.cpp index a724b732b96..c03210cf48e 100644 --- a/scene/resources/skeleton_modification_stack_3d.cpp +++ b/scene/resources/skeleton_modification_stack_3d.cpp @@ -125,6 +125,7 @@ Ref SkeletonModificationStack3D::get_modification(int p_ } void SkeletonModificationStack3D::add_modification(Ref p_mod) { + ERR_FAIL_NULL(p_mod); p_mod->_setup_modification(this); modifications.push_back(p_mod); }