Fix client dll crash during squirrel script init

The 'developer' cvar was nullptr because it was never assigned to the developer cvar address (it was defined away).
This commit is contained in:
Kawe Mazidjatari 2022-10-09 12:38:16 +02:00
parent 99a33e95f1
commit 1e23ddbf35

View File

@ -232,8 +232,8 @@ void ConVar::InitShipped(void) const
#if !defined (GAMEDLL_S0) && !defined (GAMEDLL_S1)
bhit_enable = g_pCVar->FindVar("bhit_enable");
#endif // !GAMEDLL_S0 && !GAMEDLL_S1
developer = g_pCVar->FindVar("developer");
#endif // !CLIENT_DLL
developer = g_pCVar->FindVar("developer");
#ifndef DEDICATED
cl_threaded_bone_setup = g_pCVar->FindVar("cl_threaded_bone_setup");
#endif // !DEDICATED