Backed out changeset: 7ad1ac7ca287

This commit is contained in:
Nicholas Hastings 2011-03-01 21:30:08 -05:00
parent e02bdca793
commit 31c29fb33e

View File

@ -171,10 +171,7 @@ static cell_t SetTeamScore(IPluginContext *pContext, const cell_t *params)
} }
static int offset = g_pGameHelpers->FindInSendTable(g_Teams[teamindex].ClassName, "m_iScore")->GetOffset(); static int offset = g_pGameHelpers->FindInSendTable(g_Teams[teamindex].ClassName, "m_iScore")->GetOffset();
*(int *)((unsigned char *)g_Teams[teamindex].pEnt + offset) = params[2];
CBaseEntity *pTeam = g_Teams[teamindex].pEnt;
*(int *)((unsigned char *)pTeam + offset) = params[2];
gamehelpers->SetEdictStateChanged(pTeam, offset);
return 1; return 1;
} }