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

Fixes #1670
This commit is contained in:
naydef
2023-08-30 22:08:45 +02:00
committed by Your Name
parent 6733c4182d
commit 4fc0a85581
+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;