[qw] Check player name exists in spectator tracking

Fixes a segfault when the tracked player disconnects.
This commit is contained in:
Bill Currie 2022-11-12 14:40:18 +09:00
parent 07f897122f
commit 72e57367bf

View file

@ -425,7 +425,8 @@ Cam_Track (usercmd_t *cmd)
return;
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)) {
locked = false;
if (cl_hightrack)