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 +