summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/vfs_concat.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-08-11 21:39:09 +0200
committerZach Hilman <zachhilman@gmail.com>2018-08-12 04:50:48 +0200
commit893447b6b0f5068f3cc2111b5f21c3cff68002e2 (patch)
treef2451fcb2478243621b6952ca5b006f22f957022 /src/core/file_sys/vfs_concat.cpp
parentnca_metadata: Remove unnecessary reference to base file (diff)
downloadyuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.tar
yuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.tar.gz
yuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.tar.bz2
yuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.tar.lz
yuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.tar.xz
yuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.tar.zst
yuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.zip
Diffstat (limited to 'src/core/file_sys/vfs_concat.cpp')
-rw-r--r--src/core/file_sys/vfs_concat.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/file_sys/vfs_concat.cpp b/src/core/file_sys/vfs_concat.cpp
index 88a9a5259..e6bf586a3 100644
--- a/src/core/file_sys/vfs_concat.cpp
+++ b/src/core/file_sys/vfs_concat.cpp
@@ -68,6 +68,7 @@ size_t ConcatenatedVfsFile::Read(u8* data, size_t length, size_t offset) const {
}
}
+ // Check if the entry should be the last one. The loop above will make it end().
if (entry == files.end() && offset < files.rbegin()->first + files.rbegin()->second->GetSize())
--entry;