diff --git a/extension.cpp b/extension.cpp index 0e6c665..5995d20 100644 --- a/extension.cpp +++ b/extension.cpp @@ -383,10 +383,11 @@ cell_t AddLateDownloads(IPluginContext *pContext, const cell_t *params) { } bool addToDownloadsTable = !!params[3]; - + + CUtlVector addedFiles(0, 0); CUtlVector * addedFilesPtr = &filenames; if (addToDownloadsTable) { - CUtlVector addedFiles(0, numFiles); + addedFiles.EnsureCapacity(numFiles); addedFilesPtr = &addedFiles; int added = AddStaticDownloads(filenames, addedFilesPtr); if (added == 0) diff --git a/smsdk_config.h b/smsdk_config.h index f971965..6ab84e3 100644 --- a/smsdk_config.h +++ b/smsdk_config.h @@ -40,7 +40,7 @@ /* Basic information exposed publicly */ #define SMEXT_CONF_NAME "Late Downloads" #define SMEXT_CONF_DESCRIPTION "Transfer files to clients late in game." -#define SMEXT_CONF_VERSION "1.0.1.1" +#define SMEXT_CONF_VERSION "1.0.1.2" #define SMEXT_CONF_AUTHOR "jonatan1024" #define SMEXT_CONF_URL "https://github.com/jonatan1024/latedl" #define SMEXT_CONF_LOGTAG "LATEDL"