diff options
| author | lcsondes <lcsondes@users.noreply.github.com> | 2018-05-27 21:08:12 +0100 |
|---|---|---|
| committer | lcsondes <lcsondes@users.noreply.github.com> | 2018-05-27 22:15:16 +0100 |
| commit | 7a13bdbdfbe14134b53ae34b5bb06046813b0248 (patch) | |
| tree | 31d038d126560b1f414f281cf280b01710ea3a62 /Source/Core/UICommon/GameFileCache.cpp | |
| parent | 512c6fee51a9d91027bb0f2f8c500719f7b134cb (diff) | |
UICommon: fix m_cached_files pruning (partial revert of 68152faf4352d92192a01ca913c518b25798b2d3)
vector::pop_back invalidates all iterators
Diffstat (limited to 'Source/Core/UICommon/GameFileCache.cpp')
| -rw-r--r-- | Source/Core/UICommon/GameFileCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/UICommon/GameFileCache.cpp b/Source/Core/UICommon/GameFileCache.cpp index 7f9b7015b2..e2e2848f10 100644 --- a/Source/Core/UICommon/GameFileCache.cpp +++ b/Source/Core/UICommon/GameFileCache.cpp @@ -111,9 +111,9 @@ bool GameFileCache::Update( cache_changed = true; --end; *it = std::move(*end); - m_cached_files.pop_back(); } } + m_cached_files.erase(it, m_cached_files.end()); } // Now that the previous loop has run, game_paths only contains paths that |
