Fix SteamIDCache not beign created with empty cvar.

This commit is contained in:
zaCade 2017-08-26 23:55:11 +02:00
parent c06ddc3fcd
commit 226619f24b

View File

@ -110,6 +110,9 @@ InfectOnMapEnd()
*/ */
InfectLoad() InfectLoad()
{ {
// Create mother zombie round-robin cycle storage.
g_hInfectMotherCycle = SteamidCacheCreate();
// Get infection sound. // Get infection sound.
decl String:sound[PLATFORM_MAX_PATH]; decl String:sound[PLATFORM_MAX_PATH];
GetConVarString(g_hCvarsList[CVAR_INFECT_SOUND], sound, sizeof(sound)); GetConVarString(g_hCvarsList[CVAR_INFECT_SOUND], sound, sizeof(sound));
@ -125,9 +128,6 @@ InfectLoad()
// Add sound file to downloads table. // Add sound file to downloads table.
AddFileToDownloadsTable(sound); AddFileToDownloadsTable(sound);
// Create mother zombie round-robin cycle storage.
g_hInfectMotherCycle = SteamidCacheCreate();
} }
/** /**