Clear any existing sorting data before sorting.

This commit is contained in:
Oliver Hamlet
2015-07-13 15:39:18 +01:00
parent 5a9ea1cf67
commit e33e6981d4
+5
View File
@@ -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);