mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 07:45:33 +01:00
Merge pull request #6989 from lcsondes/fix-vector-assert
UICommon: fix m_cached_files pruning.
This commit is contained in:
commit
bda668925a
@ -111,9 +111,9 @@ bool GameFileCache::Update(
|
|||||||
cache_changed = true;
|
cache_changed = true;
|
||||||
--end;
|
--end;
|
||||||
*it = std::move(*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
|
// Now that the previous loop has run, game_paths only contains paths that
|
||||||
|
Loading…
x
Reference in New Issue
Block a user