diff options
author | bunnei <bunneidev@gmail.com> | 2018-12-06 04:37:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 04:37:14 +0100 |
commit | 4c106b43a9cb41f22935b4405373ca05a15dc7a9 (patch) | |
tree | 7735c506ed6ce4a7f6d93414063eeb2f5cb6938b /src/core/file_sys/system_archive/ng_word.cpp | |
parent | Merge pull request #1866 from lioncash/cache (diff) | |
parent | ng_word: Deduplicate use of a constant value (diff) | |
download | yuzu-4c106b43a9cb41f22935b4405373ca05a15dc7a9.tar yuzu-4c106b43a9cb41f22935b4405373ca05a15dc7a9.tar.gz yuzu-4c106b43a9cb41f22935b4405373ca05a15dc7a9.tar.bz2 yuzu-4c106b43a9cb41f22935b4405373ca05a15dc7a9.tar.lz yuzu-4c106b43a9cb41f22935b4405373ca05a15dc7a9.tar.xz yuzu-4c106b43a9cb41f22935b4405373ca05a15dc7a9.tar.zst yuzu-4c106b43a9cb41f22935b4405373ca05a15dc7a9.zip |
Diffstat (limited to '')
-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)); } |