Fix crash in non-bypass-hooks DropWeapon implementation (#1672)
Fixes #1670
This commit is contained in:
parent
6733c4182d
commit
4fc0a85581
@ -296,7 +296,7 @@ cell_t Native_DropWeapon(IPluginContext *pContext, const cell_t *params)
|
|||||||
return pContext->ThrowNativeError("Could not find Weapon_Drop offset");
|
return pContext->ThrowNativeError("Could not find Weapon_Drop offset");
|
||||||
}
|
}
|
||||||
|
|
||||||
PassInfo pass[2];
|
PassInfo pass[3];
|
||||||
pass[0].type = PassType_Basic;
|
pass[0].type = PassType_Basic;
|
||||||
pass[0].size = sizeof(CBaseEntity *);
|
pass[0].size = sizeof(CBaseEntity *);
|
||||||
pass[0].flags = PASSFLAG_BYVAL;
|
pass[0].flags = PASSFLAG_BYVAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user