From c90d3184eacf00d7d8f6bfb85673e3ce8c3af139 Mon Sep 17 00:00:00 2001 From: IcePixelx <41352111+PixieCore@users.noreply.github.com> Date: Sun, 26 Dec 2021 04:14:28 +0100 Subject: [PATCH] Aligning. --- r5dev/engine/net_chan.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/r5dev/engine/net_chan.cpp b/r5dev/engine/net_chan.cpp index 659c48e0..7f7a461d 100644 --- a/r5dev/engine/net_chan.cpp +++ b/r5dev/engine/net_chan.cpp @@ -129,15 +129,17 @@ void HNET_PrintFunc(const char* fmt, ...) //----------------------------------------------------------------------------- void NET_DisconnectClient(CClient* pClient, int nIndex, const char* szReason, uint8_t unk1, char unk2) { - if (!pClient) // Client valid? + if (!pClient) // Client valid? { return; } + if (std::strlen(szReason) == NULL) // Is reason null? { return; } - if (!pClient->GetNetChan()) + + if (!pClient->GetNetChan()) // NC even existent? { return; }