aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/serverauthentication.cpp
diff options
context:
space:
mode:
authorEmma Miler <emma.pi@protonmail.com>2022-11-06 02:11:40 +0100
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-11-06 02:15:20 +0100
commit7fa570450e628cda3c01911d349459cedd060f67 (patch)
tree0fc7d85a49eb00a0be92cc4fa5c05e2989111804 /NorthstarDLL/serverauthentication.cpp
parent72d418f8d13d03e8b62855799a548d15d1e49a25 (diff)
downloadNorthstarLauncher-7fa570450e628cda3c01911d349459cedd060f67.tar.gz
NorthstarLauncher-7fa570450e628cda3c01911d349459cedd060f67.zip
Fix player count in server presence (#322)v1.10.5-rc1
Diffstat (limited to 'NorthstarDLL/serverauthentication.cpp')
-rw-r--r--NorthstarDLL/serverauthentication.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/NorthstarDLL/serverauthentication.cpp b/NorthstarDLL/serverauthentication.cpp
index bb4eb2e3..f2068cd4 100644
--- a/NorthstarDLL/serverauthentication.cpp
+++ b/NorthstarDLL/serverauthentication.cpp
@@ -398,8 +398,11 @@ void,, (R2::CBaseClient* self, uint32_t unknownButAlways1, const char* pReason,
g_pServerAuthentication->RemovePlayerAuthData(self); // won't do anything 99% of the time, but just in case
}
- g_pServerAuthentication->RemovePlayer(self);
- g_pServerLimits->RemovePlayer(self);
+ if (g_pServerAuthentication->m_RemoteAuthenticationData.count(self->m_Name))
+ {
+ g_pServerAuthentication->RemovePlayer(self);
+ g_pServerLimits->RemovePlayer(self);
+ }
g_pServerPresence->SetPlayerCount(g_pServerAuthentication->m_PlayerAuthenticationData.size());