aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKittenPopo <Pokeberry123@gmail.com>2022-06-19 14:26:44 -0700
committerGitHub <noreply@github.com>2022-06-19 23:26:44 +0200
commit0ffee77ca1e9ffdd4590e52d6e200fa2beace344 (patch)
treec2eb4f7048c6fbfec4bcc5f06bca992012714b2d
parenta3eaa83222a829530a797b3a7637f6e7fb6dead2 (diff)
downloadNorthstarLauncher-0ffee77ca1e9ffdd4590e52d6e200fa2beace344.tar.gz
NorthstarLauncher-0ffee77ca1e9ffdd4590e52d6e200fa2beace344.zip
Use strtoull instead of strtoll for uint64s (#198)
-rw-r--r--NorthstarDedicatedTest/bansystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/bansystem.cpp b/NorthstarDedicatedTest/bansystem.cpp
index 93cf9c65..9c2507fd 100644
--- a/NorthstarDedicatedTest/bansystem.cpp
+++ b/NorthstarDedicatedTest/bansystem.cpp
@@ -20,7 +20,7 @@ void ServerBanSystem::OpenBanlist()
{
std::string line;
while (std::getline(enabledModsStream, line))
- m_vBannedUids.push_back(strtoll(line.c_str(), nullptr, 10));
+ m_vBannedUids.push_back(strtoull(line.c_str(), nullptr, 10));
enabledModsStream.close();
}
@@ -74,7 +74,7 @@ void BanPlayerCommand(const CCommand& args)
if (!strcmp((char*)player + 0x16, args.Arg(1)) || !strcmp((char*)player + 0xF500, args.Arg(1)))
{
- g_ServerBanSystem->BanUID(strtoll((char*)player + 0xF500, nullptr, 10));
+ g_ServerBanSystem->BanUID(strtoull((char*)player + 0xF500, nullptr, 10));
CBaseClient__Disconnect(player, 1, "Banned from server");
break;
}
@@ -87,7 +87,7 @@ void UnbanPlayerCommand(const CCommand& args)
return;
// assumedly the player being unbanned here wasn't already connected, so don't need to iterate over players or anything
- g_ServerBanSystem->UnbanUID(strtoll(args.Arg(1), nullptr, 10));
+ g_ServerBanSystem->UnbanUID(strtoull(args.Arg(1), nullptr, 10));
}
void ClearBanlistCommand(const CCommand& args)