sdkhooks: correct velocity issues with dropweapon (#1159)

This commit is contained in:
2251307218 2020-02-27 08:11:17 +08:00 committed by GitHub
parent 68e45f3583
commit 9fb6430313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ cell_t Native_DropWeapon(IPluginContext *pContext, const cell_t *params)
}
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");
}