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

Fixes #1670
This commit is contained in:
naydef 2021-12-15 12:41:55 +02:00 committed by Your Name
parent 6733c4182d
commit 4fc0a85581

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;