From fcf33c350dabd1165d2916808d79bfcfd80c3804 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 8 Jul 2012 12:33:08 +0000 Subject: [PATCH] Fix fs_cache issue. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4064 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/fs_stdio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/common/fs_stdio.c b/engine/common/fs_stdio.c index 57c4dc7a5..b3034697e 100644 --- a/engine/common/fs_stdio.c +++ b/engine/common/fs_stdio.c @@ -248,7 +248,7 @@ static int FSSTDIO_RebuildFSHash(const char *filename, int filesize, void *data) char childpath[256]; Q_snprintfz(childpath, sizeof(childpath), "%s*", filename); - Sys_EnumerateFiles((char*)data, childpath, FSSTDIO_RebuildFSHash, data); + Sys_EnumerateFiles(sp->rootpath, childpath, FSSTDIO_RebuildFSHash, data); return true; } FS_AddFileHash(sp->depth, filename, NULL, sp); @@ -345,4 +345,5 @@ searchpathfuncs_t stdiofilefuncs = { FSSTDIO_PollChanges }; #endif -#endif \ No newline at end of file +#endif +