Fix/restore TF2_IgnitePlayer (bug 3528, r=pred)

This commit is contained in:
Fyren
2009-03-18 18:50:20 -07:00
parent 2e176b8b8d
commit 3ee6bae4ba
2 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ cell_t TF2_Burn(IPluginContext *pContext, const cell_t *params)
{
static ICallWrapper *pWrapper = NULL;
// CTFPlayerShared::Burn(CTFPlayer*)
// CTFPlayerShared::Burn(CTFPlayer*, CTFWeaponBase*)
if (!pWrapper)
{
REGISTER_NATIVE_ADDR("Burn",
@@ -68,7 +68,7 @@ cell_t TF2_Burn(IPluginContext *pContext, const cell_t *params)
void *obj = (void *)((uint8_t *)pEntity + playerSharedOffset->actual_offset);
unsigned char vstk[sizeof(void *) + sizeof(CBaseEntity *)];
unsigned char vstk[sizeof(void *) + 2*sizeof(CBaseEntity *)];
unsigned char *vptr = vstk;
*(void **)vptr = obj;