summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/GameFileCache.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2018-05-28 12:41:22 +0200
committerGitHub <noreply@github.com>2018-05-28 12:41:22 +0200
commitbda668925a25000c197764ceac678fe345e59ada (patch)
treecc6b112e43a1185bdad1fd778521ace1d26ee10f /Source/Core/UICommon/GameFileCache.cpp
parent0cba9bb218b0a4ff9664dcd0c1926ff1f7407bca (diff)
parent7a13bdbdfbe14134b53ae34b5bb06046813b0248 (diff)
Merge pull request #6989 from lcsondes/fix-vector-assert
UICommon: fix m_cached_files pruning.
Diffstat (limited to 'Source/Core/UICommon/GameFileCache.cpp')
-rw-r--r--Source/Core/UICommon/GameFileCache.cpp2
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