Spectator: Make sure we set spec_mode and spec_ent in the constructor to

some in-bound defaults. Fixes crash in HUD_Spectator()
This commit is contained in:
Marco Cawthorne 2021-05-10 12:21:40 +02:00
parent 1485544b91
commit 368e19f784

View file

@ -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");