extensions/sdktools/vhelpers.cpp
changeset 2037 561de8cbcda5
parent 1986 4570e6898622
child 2157 e3846fb56e8f
     1.1 --- a/extensions/sdktools/vhelpers.cpp	Fri May 02 01:31:15 2008 +0000
     1.2 +++ b/extensions/sdktools/vhelpers.cpp	Fri May 02 07:47:38 2008 +0000
     1.3 @@ -160,12 +160,12 @@
     1.4  	int offset;
     1.5  	if (g_pGameConf->GetOffset("EyeAngles", &offset))
     1.6  	{
     1.7 -		PassInfo info[2];
     1.8 -		info[0].flags = info[1].flags = PASSFLAG_BYVAL;
     1.9 -		info[0].size = info[1].size = sizeof(void *);
    1.10 -		info[0].type = info[1].type = PassType_Basic;
    1.11 +		PassInfo info[1];
    1.12 +		info[0].flags = PASSFLAG_BYVAL;
    1.13 +		info[0].size = sizeof(void *);
    1.14 +		info[0].type = PassType_Basic;
    1.15  
    1.16 -		s_EyeAngles.call = g_pBinTools->CreateVCall(offset, 0, 0, &info[0], &info[1], 1);
    1.17 +		s_EyeAngles.call = g_pBinTools->CreateVCall(offset, 0, 0, info, NULL, 0);
    1.18  
    1.19  		if (s_EyeAngles.call != NULL)
    1.20  		{
    1.21 @@ -190,7 +190,6 @@
    1.22  	unsigned char *vptr = params;
    1.23  
    1.24  	*(CBaseEntity **)vptr = pEntity;
    1.25 -	vptr += sizeof(CBaseEntity *);
    1.26  
    1.27  	s_EyeAngles.call->Execute(params, &pRetAngle);
    1.28