mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Clear any existing sorting data before sorting.
This commit is contained in:
@@ -97,6 +97,11 @@ namespace loot {
|
||||
std::list<Plugin> PluginSorter::Sort(Game& game,
|
||||
const unsigned int language,
|
||||
std::function<void(const std::string&)> progressCallback) {
|
||||
// Clear existing data.
|
||||
graph.clear();
|
||||
indexMap.clear();
|
||||
oldLoadOrder.clear();
|
||||
|
||||
progressCallback(boost::locale::translate("Building plugin graph..."));
|
||||
BuildPluginGraph(game, language);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user