aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/server/serverpresence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/server/serverpresence.cpp')
-rw-r--r--NorthstarDLL/server/serverpresence.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/NorthstarDLL/server/serverpresence.cpp b/NorthstarDLL/server/serverpresence.cpp
index 945f5810..c7ef20c3 100644
--- a/NorthstarDLL/server/serverpresence.cpp
+++ b/NorthstarDLL/server/serverpresence.cpp
@@ -71,7 +71,7 @@ std::string UnescapeUnicode(const std::string& str)
return result;
}
-void ServerPresenceManager::CreateConVars()
+ServerPresenceManager::ServerPresenceManager()
{
// clang-format off
// register convars
@@ -223,6 +223,7 @@ void ServerPresenceManager::SetPlayerCount(const int iPlayerCount)
ON_DLL_LOAD_RELIESON("engine.dll", ServerPresence, ConVar, (CModule module))
{
- g_pServerPresence->CreateConVars();
+ g_pServerPresence = new ServerPresenceManager;
+
Cvar_hostname = module.Offset(0x1315BAE8).Deref().As<ConVar*>();
}