From 9fb6430313b4667fc1df049599ca8da1a7b3f088 Mon Sep 17 00:00:00 2001 From: 2251307218 <59859372+2251307218@users.noreply.github.com> Date: Thu, 27 Feb 2020 08:11:17 +0800 Subject: [PATCH] sdkhooks: correct velocity issues with dropweapon (#1159) --- extensions/sdkhooks/natives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/sdkhooks/natives.cpp b/extensions/sdkhooks/natives.cpp index b3a70d35..f1ac936d 100644 --- a/extensions/sdkhooks/natives.cpp +++ b/extensions/sdkhooks/natives.cpp @@ -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"); }