Skip to content

Commit

Permalink
Fix crash in non-bypass-hooks DropWeapon implementation (#1672)
Browse files Browse the repository at this point in the history
Fixes #1670
  • Loading branch information
naydef committed Dec 15, 2021
1 parent 547ac5b commit 7d6eb2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/sdkhooks/natives.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 7d6eb2b

Please sign in to comment.