diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2023-09-28 11:40:18 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2023-10-08 17:23:33 +0200 |
commit | f18aa00e8505439c1afc3dc0eb309429a88cf4de (patch) | |
tree | f62c7b1314ea19468e1f379ebde52938e4dbefd9 /scene/resources/skeleton_modification_2d_physicalbones.cpp | |
parent | 6916349697a4339216469e9bf5899b983d78db07 (diff) | |
download | redot-engine-f18aa00e8505439c1afc3dc0eb309429a88cf4de.tar.gz |
Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'scene/resources/skeleton_modification_2d_physicalbones.cpp')
-rw-r--r-- | scene/resources/skeleton_modification_2d_physicalbones.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/skeleton_modification_2d_physicalbones.cpp b/scene/resources/skeleton_modification_2d_physicalbones.cpp index 520b2ce483..5a72eb6bd8 100644 --- a/scene/resources/skeleton_modification_2d_physicalbones.cpp +++ b/scene/resources/skeleton_modification_2d_physicalbones.cpp @@ -186,7 +186,7 @@ void SkeletonModification2DPhysicalBones::set_physical_bone_chain_length(int p_l void SkeletonModification2DPhysicalBones::fetch_physical_bones() { ERR_FAIL_NULL_MSG(stack, "No modification stack found! Cannot fetch physical bones!"); - ERR_FAIL_COND_MSG(!stack->skeleton, "No skeleton found! Cannot fetch physical bones!"); + ERR_FAIL_NULL_MSG(stack->skeleton, "No skeleton found! Cannot fetch physical bones!"); physical_bone_chain.clear(); |