From 1de29dc5e4ee76c63ea192f0334dfb9e30b3e8dd Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Fri, 6 Nov 2020 01:34:55 +0100 Subject: [PATCH] fix assert in SendToAll --- src/Network/InitClient.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Network/InitClient.cpp b/src/Network/InitClient.cpp index 0474331..e69616c 100644 --- a/src/Network/InitClient.cpp +++ b/src/Network/InitClient.cpp @@ -32,7 +32,9 @@ void Respond(Client*c, const std::string& MSG, bool Rel){ }else UDPSend(c,MSG); } void SendToAll(Client*c, const std::string& Data, bool Self, bool Rel){ - Assert(c); + if (Self) { + Assert(c); + } char C = Data.at(0); for(Client*client : CI->Clients){ if(client != nullptr) {