From 7cf6c0431f2f76a0fdccbc51a4b31e2f0714bdac Mon Sep 17 00:00:00 2001 From: neon <> Date: Wed, 22 May 2019 14:39:22 +0200 Subject: [PATCH] re-add the IsConnected() check --- extension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension.cpp b/extension.cpp index bb5b30f..aef1f6a 100644 --- a/extension.cpp +++ b/extension.cpp @@ -150,7 +150,7 @@ DETOUR_DECL_STATIC6(Detour_SendTo, int, int, s, char *, buf, int, len, int, flag { IGamePlayer *pPlayer = playerhelpers->GetGamePlayer(index); - if (pPlayer != NULL && pPlayer->IsInGame() && !pPlayer->IsSourceTV()) + if (pPlayer != NULL && pPlayer->IsConnected() && pPlayer->IsInGame() && !pPlayer->IsSourceTV()) { g_PlayerReplyPacket.WriteByte(iPlayers); g_PlayerReplyPacket.WriteString(pPlayer->GetName());