This commit is contained in:
Nicholas Hastings 2011-03-01 21:22:09 -05:00
commit 55034bfa6f

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();
CBaseEntity *pTeam = g_Teams[teamindex].pEnt;
*(int *)((unsigned char *)pTeam + offset) = params[2];
gamehelpers->SetEdictStateChanged(pTeam, offset);
*(int *)((unsigned char *)g_Teams[teamindex].pEnt + offset) = params[2];
return 1;
}