summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-05 08:36:43 +0100
committerLioncash <mathew1800@gmail.com>2018-12-05 08:36:45 +0100
commit2207baaa04c97730e6eaa184aa4f3c4e6537e0d1 (patch)
tree8dbc6e040d03bb8f17d9083a9cc3e9f8c380d878 /src/core/file_sys
parentsystem_archive: Use a regular function pointer instead of std::function for file-scope system archive array (diff)
downloadyuzu-2207baaa04c97730e6eaa184aa4f3c4e6537e0d1.tar
yuzu-2207baaa04c97730e6eaa184aa4f3c4e6537e0d1.tar.gz
yuzu-2207baaa04c97730e6eaa184aa4f3c4e6537e0d1.tar.bz2
yuzu-2207baaa04c97730e6eaa184aa4f3c4e6537e0d1.tar.lz
yuzu-2207baaa04c97730e6eaa184aa4f3c4e6537e0d1.tar.xz
yuzu-2207baaa04c97730e6eaa184aa4f3c4e6537e0d1.tar.zst
yuzu-2207baaa04c97730e6eaa184aa4f3c4e6537e0d1.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/system_archive/ng_word.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/system_archive/ng_word.cpp b/src/core/file_sys/system_archive/ng_word.cpp
index d0acdbd49..a24f1e496 100644
--- a/src/core/file_sys/system_archive/ng_word.cpp
+++ b/src/core/file_sys/system_archive/ng_word.cpp
@@ -26,7 +26,7 @@ constexpr std::array<u8, 30> WORD_TXT{
VirtualDir NgWord1() {
std::vector<VirtualFile> files(NgWord1Data::NUMBER_WORD_TXT_FILES);
- for (std::size_t i = 0; i < NgWord1Data::NUMBER_WORD_TXT_FILES; ++i) {
+ for (std::size_t i = 0; i < files.size(); ++i) {
files[i] = std::make_shared<ArrayVfsFile<NgWord1Data::WORD_TXT.size()>>(
NgWord1Data::WORD_TXT, fmt::format("{}.txt", i));
}