Fixed amb1727 - TF2_Disguise and TF2_RemoveDisguise had incorrect signatures

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402223
This commit is contained in:
Scott Ehlert
2008-05-30 22:38:04 +00:00
parent 6e2ac7376e
commit 5b4f98b354
2 changed files with 11 additions and 6 deletions
+7 -2
View File
@@ -44,11 +44,14 @@ cell_t TF2_Burn(IPluginContext *pContext, const cell_t *params)
if (!pWrapper)
{
REGISTER_NATIVE_ADDR("Burn",
PassInfo pass[1]; \
PassInfo pass[2]; \
pass[0].flags = PASSFLAG_BYVAL; \
pass[0].size = sizeof(CBaseEntity *); \
pass[0].type = PassType_Basic; \
pWrapper = g_pBinTools->CreateCall(addr, CallConv_ThisCall, NULL, pass, 1))
pass[1].flags = PASSFLAG_BYVAL; \
pass[1].size = sizeof(CBaseEntity *); \
pass[1].type = PassType_Basic; \
pWrapper = g_pBinTools->CreateCall(addr, CallConv_ThisCall, NULL, pass, 2))
}
CBaseEntity *pEntity;
@@ -71,6 +74,8 @@ cell_t TF2_Burn(IPluginContext *pContext, const cell_t *params)
*(void **)vptr = obj;
vptr += sizeof(void *);
*(CBaseEntity **)vptr = pTarget;
vptr += sizeof(CBaseEntity *);
*(CBaseEntity **)vptr = NULL;
pWrapper->Execute(vstk, NULL);