summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/fsdir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/virtfs/fsdir.cpp')
-rw-r--r--src/fs/virtfs/fsdir.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/virtfs/fsdir.cpp b/src/fs/virtfs/fsdir.cpp
index f7642c72c..39c26b1b0 100644
--- a/src/fs/virtfs/fsdir.cpp
+++ b/src/fs/virtfs/fsdir.cpp
@@ -168,12 +168,12 @@ namespace FsDir
}
bool getRealDir(FsEntry *restrict const entry,
- const std::string &filename,
- const std::string &dirName A_UNUSED,
+ std::string filename,
+ std::string dirName A_UNUSED,
std::string &realDir)
{
DirEntry *const dirEntry = static_cast<DirEntry*>(entry);
- if (Files::existsLocal(dirEntry->root + filename))
+ if (Files::existsLocal(dirEntry->root + entry->subDir + filename))
{
realDir = dirEntry->userDir;
return true;