diff options
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index d2f4a58..883d32f 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -5306,7 +5306,7 @@ LLVector3 LLVOAvatar::getVolumePos(S32 joint_index, LLVector3& volume_offset) | |||
5306 | //----------------------------------------------------------------------------- | 5306 | //----------------------------------------------------------------------------- |
5307 | LLJoint* LLVOAvatar::findCollisionVolume(U32 volume_id) | 5307 | LLJoint* LLVOAvatar::findCollisionVolume(U32 volume_id) |
5308 | { | 5308 | { |
5309 | if ((S32)volume_id > mNumCollisionVolumes) | 5309 | if ((S32)volume_id > mNumCollisionVolumes || (S32)volume_id < 0) |
5310 | { | 5310 | { |
5311 | return NULL; | 5311 | return NULL; |
5312 | } | 5312 | } |