Skip to content

Commit 4857d92

Browse files
committed
fix medic health outlines not working properly
1 parent 72ab3d0 commit 4857d92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/game/client/tf/c_tf_player.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11932,7 +11932,7 @@ void C_TFPlayer::GetGlowEffectColor( float *r, float *g, float *b )
1193211932
C_TFPlayer* pLocalPlayer = GetLocalTFPlayer();
1193311933

1193411934
bool bShowHealthGlow = false;
11935-
bool bMedic = IsPlayerClass( TF_CLASS_MEDIC );
11935+
bool bMedic = pLocalPlayer && pLocalPlayer->IsPlayerClass( TF_CLASS_MEDIC );
1193611936
if ( TFGameRules() && ( TFGameRules()->GetGameType() == TF_GAMETYPE_CTF ) && HasTheFlag() )
1193711937
{
1193811938
// In CTF, show health for allied flag carrier

0 commit comments

Comments
 (0)