From daad01d129d286482118e0bb89a7976a91fcede6 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 16 Sep 2020 01:49:53 -0400 Subject: [PATCH] CBSBiPedLocomotion: Fix strafe type calculation --- Runtime/Character/CBodyState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Character/CBodyState.cpp b/Runtime/Character/CBodyState.cpp index e133b4a53..ccc529a3d 100644 --- a/Runtime/Character/CBodyState.cpp +++ b/Runtime/Character/CBodyState.cpp @@ -2014,7 +2014,7 @@ float CBSBiPedLocomotion::UpdateStrafe(float vel, CBodyController& bc, pas::ELoc maxComp = i; } } - const int strafeKey = maxComp * 2 + localVec[maxComp] > 0.f ? 0 : 1; + const int strafeKey = maxComp * 2 + (localVec[maxComp] > 0.f ? 0 : 1); const pas::ELocomotionAnim strafeType = Strafes[strafeKey]; const float rate = vel * GetLocomotionSpeed(x4_locomotionType, strafeType); if (anim != strafeType) {