Skip to content

Commit 8178315

Browse files
committed
fix crash on startup caused by the hud_target_id panel
bandaid fix, theres something *very* wrong here.
1 parent a8f32d4 commit 8178315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/client/tf/tf_hud_target_id.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class CTargetID : public CHudElement, public vgui::EditablePanel
6666
int m_iLastEntIndex;
6767
float m_flLastChangeTime;
6868
float m_flTargetRetainFOV;
69-
int m_iTargetEntIndex;
69+
int m_iTargetEntIndex = 0; // Depends on being set to zero, but never set at construction!
7070
bool m_bLayoutOnUpdate;
7171

7272
vgui::Label *m_pTargetNameLabel;

0 commit comments

Comments
 (0)