diff options
Diffstat (limited to 'NorthstarDLL/server/auth/bansystem.cpp')
-rw-r--r-- | NorthstarDLL/server/auth/bansystem.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/NorthstarDLL/server/auth/bansystem.cpp b/NorthstarDLL/server/auth/bansystem.cpp index 56719ed9..47df495d 100644 --- a/NorthstarDLL/server/auth/bansystem.cpp +++ b/NorthstarDLL/server/auth/bansystem.cpp @@ -2,7 +2,6 @@ #include "pch.h" #include "bansystem.h" #include "serverauthentication.h" -#include "shared/maxplayers.h" #include "core/convar/concommand.h" #include "server/r2server.h" #include "engine/r2engine.h" @@ -184,7 +183,7 @@ void ConCommand_ban(const CCommand& args) if (args.ArgC() < 2) return; - for (int i = 0; i < R2::GetMaxPlayers(); i++) + for (int i = 0; i < R2::g_pGlobals->m_nMaxClients; i++) { R2::CBaseClient* player = &R2::g_pClientArray[i]; |