From 850e4e84e431edd5001552f3e0b64a7605eb336f Mon Sep 17 00:00:00 2001 From: Learath Date: Mon, 18 May 2020 21:13:15 +0300 Subject: [PATCH] Reserve bytes for the type and token --- src/engine/server/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index af1051c4e..dfca811da 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -1728,7 +1728,7 @@ void CServer::CacheServerInfo(CCache *pCache, int Type, bool SendClients) if(Type == SERVERINFO_EXTENDED) { - if(pp.Size() >= NET_MAX_PAYLOAD) + if(pp.Size() >= NET_MAX_PAYLOAD - 18) // 8 bytes for type, 10 bytes for the largest token { // Retry current player. i--;