Fix incorrect param types in CS:GO GNI (otherwise broken for x64).

This commit is contained in:
Nick Hastings 2021-10-02 11:38:54 -04:00 committed by Nicholas Hastings
parent da3146e294
commit ed96da1afc

View File

@ -173,9 +173,9 @@ static cell_t GiveNamedItem(IPluginContext *pContext, const cell_t *params)
ValvePassInfo pass[6];
InitPass(pass[0], Valve_String, PassType_Basic, PASSFLAG_BYVAL);
InitPass(pass[1], Valve_POD, PassType_Basic, PASSFLAG_BYVAL);
InitPass(pass[2], Valve_POD, PassType_Basic, PASSFLAG_BYVAL);
InitPass(pass[2], Valve_Object, PassType_Basic, PASSFLAG_BYVAL);
InitPass(pass[3], Valve_Bool, PassType_Basic, PASSFLAG_BYVAL);
InitPass(pass[4], Valve_POD, PassType_Basic, PASSFLAG_BYVAL);
InitPass(pass[4], Valve_Vector, PassType_Basic, PASSFLAG_BYVAL);
InitPass(pass[5], Valve_CBaseEntity, PassType_Basic, PASSFLAG_BYVAL);
if (!CreateBaseCall("GiveNamedItem", ValveCall_Player, &pass[5], pass, 5, &pCall))
{