Permalink
Browse files

UICommon: fix m_cached_files pruning (partial revert of 68152fa)

vector::pop_back invalidates all iterators
  • Loading branch information...
lcsondes committed May 27, 2018
1 parent 512c6fe commit 7a13bdbdfbe14134b53ae34b5bb06046813b0248
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 7a13bdb

Please sign in to comment.