mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
[qw] Check player name exists in spectator tracking
Fixes a segfault when the tracked player disconnects.
This commit is contained in:
parent
07f897122f
commit
72e57367bf
1 changed files with 2 additions and 1 deletions
|
@ -425,7 +425,8 @@ Cam_Track (usercmd_t *cmd)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (locked
|
if (locked
|
||||||
&& (!cl.players[spec_track].name->value[0]
|
&& (!cl.players[spec_track].name
|
||||||
|
|| !cl.players[spec_track].name->value[0]
|
||||||
|| cl.players[spec_track].spectator)) {
|
|| cl.players[spec_track].spectator)) {
|
||||||
locked = false;
|
locked = false;
|
||||||
if (cl_hightrack)
|
if (cl_hightrack)
|
||||||
|
|
Loading…
Reference in a new issue