aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/bansystem.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-09 00:19:30 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-09 00:19:30 +0000
commitbd2d7e3deadb3d9142630ae633a17b02e2b09fff (patch)
treecb51a5068ac591358386479fc7347647f4011468 /NorthstarDedicatedTest/bansystem.cpp
parent733bf92983fa60abfaad6af5c0b9950c3d1e3a4e (diff)
downloadNorthstarLauncher-bd2d7e3deadb3d9142630ae633a17b02e2b09fff.tar.gz
NorthstarLauncher-bd2d7e3deadb3d9142630ae633a17b02e2b09fff.zip
fix typo in bansystem uid comparison
Diffstat (limited to 'NorthstarDedicatedTest/bansystem.cpp')
-rw-r--r--NorthstarDedicatedTest/bansystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/bansystem.cpp b/NorthstarDedicatedTest/bansystem.cpp
index 610c20e4..a4d994d0 100644
--- a/NorthstarDedicatedTest/bansystem.cpp
+++ b/NorthstarDedicatedTest/bansystem.cpp
@@ -71,7 +71,7 @@ void BanPlayerCommand(const CCommand& args)
{
void* player = GetPlayerByIndex(i);
- if (!strcmp((char*)player + 0x16, args.Arg(1)) || strcmp((char*)player + 0xF500, args.Arg(1)))
+ if (!strcmp((char*)player + 0x16, args.Arg(1)) || !strcmp((char*)player + 0xF500, args.Arg(1)))
{
g_ServerBanSystem->BanUID(strtoll((char*)player + 0xF500, nullptr, 10));
CBaseClient__Disconnect(player, 1, "Banned from server");