From 4fc0a85581a0b8600e209f770ce279a95c572e82 Mon Sep 17 00:00:00 2001 From: naydef Date: Wed, 15 Dec 2021 12:41:55 +0200 Subject: [PATCH] Fix crash in non-bypass-hooks DropWeapon implementation (#1672) Fixes #1670 --- 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 8b927103..25aa5c6a 100644 --- a/extensions/sdkhooks/natives.cpp +++ b/extensions/sdkhooks/natives.cpp @@ -296,7 +296,7 @@ cell_t Native_DropWeapon(IPluginContext *pContext, const cell_t *params) return pContext->ThrowNativeError("Could not find Weapon_Drop offset"); } - PassInfo pass[2]; + PassInfo pass[3]; pass[0].type = PassType_Basic; pass[0].size = sizeof(CBaseEntity *); pass[0].flags = PASSFLAG_BYVAL;