Skip to content

Commit

Permalink
Fix scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatan1024 committed Feb 25, 2018
1 parent 3aab584 commit 561de33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,11 @@ cell_t AddLateDownloads(IPluginContext *pContext, const cell_t *params) {
}

bool addToDownloadsTable = !!params[3];


CUtlVector<const char *> addedFiles(0, 0);
CUtlVector<const char *> * addedFilesPtr = &filenames;
if (addToDownloadsTable) {
CUtlVector<const char *> addedFiles(0, numFiles);
addedFiles.EnsureCapacity(numFiles);
addedFilesPtr = &addedFiles;
int added = AddStaticDownloads(filenames, addedFilesPtr);
if (added == 0)
Expand Down
2 changes: 1 addition & 1 deletion smsdk_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 561de33

Please sign in to comment.