diff --git a/indra/newview/llbreastmotion.cpp b/indra/newview/llbreastmotion.cpp
index c773655f3537ade5233e1fee54733a0963da2a6a..8d3571e83dced3189bfe6e125dc9515d2734ec80 100644
--- a/indra/newview/llbreastmotion.cpp
+++ b/indra/newview/llbreastmotion.cpp
@@ -321,7 +321,7 @@ BOOL LLBreastMotion::onUpdate(F32 time, U8* joint_mask)
 		
 	for (U32 i=0; i < 3; i++)
 	{
-		if (mBreastMaxVelocityParam[0] == 0)
+		if (mBreastMaxVelocityParam[i] == 0)
 		{
 			new_local_pt[i] = breast_user_local_pt[i];
 		}