From ed96da1afcc696c790f5a71da63c664073198191 Mon Sep 17 00:00:00 2001 From: Nick Hastings Date: Sat, 2 Oct 2021 11:38:54 -0400 Subject: [PATCH] Fix incorrect param types in CS:GO GNI (otherwise broken for x64). --- extensions/sdktools/vnatives.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/sdktools/vnatives.cpp b/extensions/sdktools/vnatives.cpp index 869f103a..fe80bd7e 100644 --- a/extensions/sdktools/vnatives.cpp +++ b/extensions/sdktools/vnatives.cpp @@ -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)) {