sdkhooks: correct velocity issues with dropweapon (#1159)
This commit is contained in:
parent
68e45f3583
commit
9fb6430313
@ -236,7 +236,7 @@ cell_t Native_DropWeapon(IPluginContext *pContext, const cell_t *params)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Vector vecVelocity;
|
Vector vecVelocity;
|
||||||
if ((err = pContext->LocalToPhysAddr(params[8], &addr)) != SP_ERROR_NONE)
|
if ((err = pContext->LocalToPhysAddr(params[4], &addr)) != SP_ERROR_NONE)
|
||||||
{
|
{
|
||||||
return pContext->ThrowNativeError("Could not read vecVelocity vector");
|
return pContext->ThrowNativeError("Could not read vecVelocity vector");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user