Fix issue with lazy loading directory entries. Fixes #8613.

This commit is contained in:
Henrik Rydgard 2016-03-06 14:26:42 +01:00
parent 082d839965
commit d4e432dadd

View File

@ -310,6 +310,8 @@ ISOFileSystem::TreeEntry *ISOFileSystem::GetFromPath(const std::string &path, bo
if (nextEntry) {
entry = nextEntry;
if (!entry->valid)
ReadDirectory(entry);
pathIndex += name.length();
if (pathIndex < pathLength && path[pathIndex] == '/')
++pathIndex;