Fix -- the sequel.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2983 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2008-05-19 21:46:48 +00:00
parent 0200015e5e
commit 034926bcac
+3 -1
View File
@@ -433,6 +433,7 @@ int
loadIndices (uio_DirHandle *dir)
{
uio_DirList *indices;
int numLoaded = 0;
indices = uio_getDirList (dir, "", ".rmp$",
match_MATCH_REGEX);
@@ -445,12 +446,13 @@ loadIndices (uio_DirHandle *dir)
{
log_add (log_Debug, "Loading resouce index '%s'", indices->names[i]);
LoadResourceIndex (dir, indices->names[i]);
numLoaded++;
}
}
uio_DirList_free (indices);
/* Return the number of index files loaded. */
return indices->numNames;
return numLoaded;
}
BOOLEAN