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 GitHub
parent 547ac5b026
commit 7d6eb2bd81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;