From 6f8b420d0d94a879cb65647f3a439a630cc6bda4 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 1 Mar 2011 21:22:01 -0500 Subject: [PATCH] Backed out changeset: 6da59ea19165 --- extensions/sdktools/teamnatives.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/extensions/sdktools/teamnatives.cpp b/extensions/sdktools/teamnatives.cpp index edcc5a8a..4ec170df 100644 --- a/extensions/sdktools/teamnatives.cpp +++ b/extensions/sdktools/teamnatives.cpp @@ -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; }