From 368e19f784e383ffb525d8e70ffc62860c337a11 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Mon, 10 May 2021 12:21:40 +0200 Subject: [PATCH] Spectator: Make sure we set spec_mode and spec_ent in the constructor to some in-bound defaults. Fixes crash in HUD_Spectator() --- src/shared/spectator.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/spectator.qc b/src/shared/spectator.qc index cf11dcda..56fad276 100644 --- a/src/shared/spectator.qc +++ b/src/shared/spectator.qc @@ -380,6 +380,8 @@ spectator::spectator(void) think = __NULL__; nextthink = 0.0f; maxspeed = 250; + spec_ent = 0; + spec_mode = 0; #ifdef SERVER forceinfokey(this, "*spec", "1");