sdkhooks: correct velocity issues with dropweapon (#1159)

This commit is contained in:
2251307218 2020-02-27 08:11:17 +08:00 committed by Nick Hastings
parent 52fad58730
commit 36341a5984

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");
}