sdkhooks: correct velocity issues with dropweapon (#1159)

This commit is contained in:
2251307218
2020-02-26 16:11:17 -08:00
committed by GitHub
parent 68e45f3583
commit 9fb6430313
+1 -1
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");
}