From bf57ab2daab62c76777f7e6df79895ed5519ab89 Mon Sep 17 00:00:00 2001 From: Edo Date: Sun, 16 Apr 2023 15:07:09 +0200 Subject: [PATCH] [Bans]: Correct small mistake (#936) --- src/Components/Modules/Bans.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Bans.cpp b/src/Components/Modules/Bans.cpp index 0d259589..b7702656 100644 --- a/src/Components/Modules/Bans.cpp +++ b/src/Components/Modules/Bans.cpp @@ -266,7 +266,7 @@ namespace Components return; } - const auto* cl = &Game::svs_clients[clientNum]; + auto* cl = &Game::svs_clients[clientNum]; if (cl->header.state < Game::CS_ACTIVE) { Logger::Print("Client {} is not active\n", clientNum); @@ -279,7 +279,7 @@ namespace Components } const std::string reason = params->size() < 3 ? "EXE_ERR_BANNED_PERM" : params->join(2); - BanClient(&Game::svs_clients[clientNum], reason); + BanClient(cl, reason); }); Command::Add("unbanClient", [](Command::Params* params)