From a700737d6416263b0151813f8b52e935243a8a45 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 16 Feb 2017 15:39:56 +1000 Subject: [PATCH] Only use SetSpectatee when disconnecting if the client was a spectator (should fix some warnings when bots are removed) --- qcsrc/server/client.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 786104918..ffd380810 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1256,7 +1256,8 @@ void ClientDisconnect(entity this) Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_QUIT_DISCONNECT, this.netname); - SetSpectatee(this, NULL); + if(IS_SPEC(this)) + SetSpectatee(this, NULL); MUTATOR_CALLHOOK(ClientDisconnect, this); -- 2.39.2