From e1a6182665a0437b7e11ca91bc4cfb947923d96e Mon Sep 17 00:00:00 2001 From: Accelerator Date: Wed, 8 May 2024 18:27:12 +0300 Subject: [PATCH] Update l4dtoolz_mm.cpp --- l4dtoolz_mm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/l4dtoolz_mm.cpp b/l4dtoolz_mm.cpp index ba2cba3..dc9e96d 100644 --- a/l4dtoolz_mm.cpp +++ b/l4dtoolz_mm.cpp @@ -119,7 +119,9 @@ bool l4dtoolz::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool int* m_nMaxClientsLimit = (int*)(((uint**)g_pGameIServer)+maxplayers_offs); if (*m_nMaxClientsLimit != 0x12) { Warning("Couldn't patch maxplayers\n"); - g_pGameIServer = NULL; + if (!late) { + g_pGameIServer = NULL; + } } else { *m_nMaxClientsLimit = 0x20; const char *pszCmdLineMax;