We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b31f51 commit cdd2a82Copy full SHA for cdd2a82
src/core/globals.cpp
@@ -141,7 +141,10 @@ void DetourGameEventManagerInit(IGameEventManager2* pGameEventManager)
141
}
142
143
int source_hook_pluginid = 0;
144
-CGlobalVars* getGlobalVars() { return engineServer2->GetServerGlobals(); }
145
-
+CGlobalVars* getGlobalVars() {
+ INetworkGameServer *server = networkServerService->GetIGameServer();
146
+ if(!server) return nullptr;
147
+ return networkServerService->GetIGameServer()->GetGlobals();
148
+}
149
} // namespace globals
150
} // namespace counterstrikesharp
0 commit comments