Skip to content
Permalink
Browse files

Fix #880: push setPedAnimationSpeed limit

  • Loading branch information
qaisjp committed Jan 26, 2020
1 parent 273a87a commit 4c36d37056d2a1496904f394bf96303dd0f2b4c5
@@ -2080,7 +2080,7 @@ int CLuaPedDefs::SetPedAnimationSpeed(lua_State* luaVM)

if (!argStream.HasErrors())
{
if (!strAnimName.empty() && fSpeed >= 0.0f && fSpeed <= 1.0f)
if (!strAnimName.empty() && fSpeed >= 0.0f && fSpeed <= 10.0f)
{
if (CStaticFunctionDefinitions::SetPedAnimationSpeed(*pEntity, strAnimName, fSpeed))
{
@@ -498,7 +498,7 @@ int CLuaPedDefs::SetPedAnimationSpeed(lua_State* luaVM)

if (!argStream.HasErrors())
{
if (!strAnimName.empty() && fSpeed >= 0.0f && fSpeed <= 1.0f)
if (!strAnimName.empty() && fSpeed >= 0.0f && fSpeed <= 10.0f)
{
if (CStaticFunctionDefinitions::SetPedAnimationSpeed(pElement, strAnimName, fSpeed))
{

0 comments on commit 4c36d37

Please sign in to comment.
You can’t perform that action at this time.