From 034926bcac79ab4fbc8cd396518e13769ebef492 Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Mon, 19 May 2008 21:46:48 +0000 Subject: [PATCH] Fix -- the sequel. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2983 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/options.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sc2/src/options.c b/sc2/src/options.c index 95729ecbb..ebb3033e7 100644 --- a/sc2/src/options.c +++ b/sc2/src/options.c @@ -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