diff options
author | Lioncash <mathew1800@gmail.com> | 2018-12-05 08:36:43 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-12-05 08:36:45 +0100 |
commit | 2207baaa04c97730e6eaa184aa4f3c4e6537e0d1 (patch) | |
tree | 8dbc6e040d03bb8f17d9083a9cc3e9f8c380d878 | |
parent | system_archive: Use a regular function pointer instead of std::function for file-scope system archive array (diff) | |
download | yuzu-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 |
-rw-r--r-- | src/core/file_sys/system_archive/ng_word.cpp | 2 |
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)); } |