diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2018-10-04 12:23:18 -0400 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-04 12:23:27 -0400 |
| commit | 794fdbd68016cf53bb6fe93a0b0d0e1b0bc604b4 (patch) | |
| tree | 4d4d2267784e1e0baa76dfb656b91503118f89b0 /src/core/file_sys/patch_manager.cpp | |
| parent | c60739016dffe911f79ed5914197e50e69c996d8 (diff) | |
ips_layer: Fix inaccuracies with comments and flags
Specifically bugs/crashes that arise when putting them in positions that are legal but not typical, such as midline, between patch data, or between patch records.
Diffstat (limited to 'src/core/file_sys/patch_manager.cpp')
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 03df249067..ab2e5e43dd 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -76,7 +76,7 @@ VirtualDir PatchManager::PatchExeFS(VirtualDir exefs) const { static std::vector<VirtualFile> CollectPatches(const std::vector<VirtualDir>& patch_dirs, const std::string& build_id) { std::vector<VirtualFile> out; - ips.reserve(patch_dirs.size()); + out.reserve(patch_dirs.size()); for (const auto& subdir : patch_dirs) { auto exefs_dir = subdir->GetSubdirectory("exefs"); if (exefs_dir != nullptr) { |
