Fix crash in non-bypass-hooks DropWeapon implementation (#1672)

Fixes #1670
This commit is contained in:
naydef
2021-12-15 10:41:55 +00:00
committed by GitHub
parent 547ac5b026
commit 7d6eb2bd81
+1 -1
View File
@@ -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;