summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Dun <manueldun@gmail.com>2021-10-25 19:44:22 -0400
committerManuel Dun <manueldun@gmail.com>2021-10-25 19:44:22 -0400
commit0384474f8376bd6e7a06d935fa6a7a152ab525ca (patch)
treeb0abdf3357a95faf49f1903e4dd80b9bc782a4c5
parent3905b4e67a93cc6214fe2cbab955e18ee128b407 (diff)
Added error macro to ensure non null parameter
-rw-r--r--scene/resources/skeleton_modification_stack_3d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/skeleton_modification_stack_3d.cpp b/scene/resources/skeleton_modification_stack_3d.cpp
index a724b732b9..c03210cf48 100644
--- a/scene/resources/skeleton_modification_stack_3d.cpp
+++ b/scene/resources/skeleton_modification_stack_3d.cpp
@@ -125,6 +125,7 @@ Ref<SkeletonModification3D> SkeletonModificationStack3D::get_modification(int p_
}
void SkeletonModificationStack3D::add_modification(Ref<SkeletonModification3D> p_mod) {
+ ERR_FAIL_NULL(p_mod);
p_mod->_setup_modification(this);
modifications.push_back(p_mod);
}