Skip to content

Commit 7863e38

Browse files
committed
clamp
1 parent 94fbed9 commit 7863e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/mods/deathmatch/logic/CClientPed.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5856,7 +5856,7 @@ void CClientPed::RunAnimationFromCache()
58565856
}
58575857
}
58585858

5859-
animAssoc->SetCurrentProgress(progress);
5859+
animAssoc->SetCurrentProgress(std::clamp(progress, 0.0f, 1.0f));
58605860
animAssoc->SetCurrentSpeed(m_AnimationCache.speed);
58615861
}
58625862

0 commit comments

Comments
 (0)