summaryrefslogtreecommitdiff
path: root/src/cgame/cg_draw.c
diff options
context:
space:
mode:
authorMichael Levin <risujin@fastmail.fm>2009-10-03 11:32:06 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:06 +0000
commit03d3044a87e83a85a7365e77affc68986f093f22 (patch)
tree95c20abfc9d65287bc5b694aa02f4904d65d37a7 /src/cgame/cg_draw.c
parent1da436e9f6b256be79bacccf6ede805e51aff65d (diff)
Fixed a bug that kept squad markers from working.
Diffstat (limited to 'src/cgame/cg_draw.c')
-rw-r--r--src/cgame/cg_draw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index 31e619c7..051a091b 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -2288,7 +2288,8 @@ static void CG_DrawSquadMarkers( vec4_t color )
{
cent = cg_entities + cg.snap->entities[ i ].number;
if( cent->currentState.eType != ET_PLAYER ||
- cgs.clientinfo[ i ].team != cg.snap->ps.stats[ STAT_PTEAM ] ||
+ cgs.clientinfo[ cg.snap->entities[ i ].number ].team !=
+ cg.snap->ps.stats[ STAT_PTEAM ] ||
!cent->pe.squadMarked )
continue;