From b0fe6c83e20c265492a59a186aaefd4d8bde24f5 Mon Sep 17 00:00:00 2001 From: arkshine Date: Tue, 12 Feb 2013 23:17:24 -0800 Subject: [PATCH] Fix get_team() sometimes being wrong for dead players (bug 4656, r=dvander). --- amxmodx/emsg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/amxmodx/emsg.cpp b/amxmodx/emsg.cpp index 3f59304d..1e43fd4c 100755 --- a/amxmodx/emsg.cpp +++ b/amxmodx/emsg.cpp @@ -109,6 +109,7 @@ void Client_TeamInfo(void* mValue) char* msg = (char*)mValue; g_players[index].team.assign(msg); g_teamsIds.registerTeam(msg, -1); + g_players[index].teamId = g_teamsIds.findTeamId(msg); break; } }