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 | 110d5784702282c594fe57f84f8d6bda21a82d50 (patch) | |
| tree | 4d4d2267784e1e0baa76dfb656b91503118f89b0 /src/core/file_sys/patch_manager.cpp | |
| parent | 70bd2bb1d3aec23fc052c9612f9e530c1a2de72d (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 03df24906..ab2e5e43d 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) { |
