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:
parent
1485544b91
commit
368e19f784
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue