summaryrefslogtreecommitdiff
path: root/indra/llappearance/llavatarappearance.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2019-02-05 21:38:00 +0000
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2019-02-05 21:38:00 +0000
commita77344516ce00ed7b447626c1d57195dd183b7f9 (patch)
tree350bc3bcdcfce05b8fbf2bd62a3f399e901df557 /indra/llappearance/llavatarappearance.cpp
parenta3b3ad727f53aa280ffbcc1b61ccfbb48e988708 (diff)
SL-10471 - animation validation for constraints
Diffstat (limited to 'indra/llappearance/llavatarappearance.cpp')
-rw-r--r--indra/llappearance/llavatarappearance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llappearance/llavatarappearance.cpp b/indra/llappearance/llavatarappearance.cpp
index 92217c60ff..c28b5f8081 100644
--- a/indra/llappearance/llavatarappearance.cpp
+++ b/indra/llappearance/llavatarappearance.cpp
@@ -1350,7 +1350,7 @@ LLVector3 LLAvatarAppearance::getVolumePos(S32 joint_index, LLVector3& volume_of
//-----------------------------------------------------------------------------
LLJoint* LLAvatarAppearance::findCollisionVolume(U32 volume_id)
{
- if ((S32)volume_id > mNumCollisionVolumes)
+ if (((S32)volume_id >= mNumCollisionVolumes) || ((S32)volume_id < 0))
{
return NULL;
}