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

vector::pop_back invalidates all iterators
This commit is contained in:
lcsondes 2018-05-27 21:08:12 +01:00
parent 512c6fee51
commit 7a13bdbdfb

View file

@ -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