From f67c6c5a4a7802226cb86efa7f606fcb58ec2e22 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Fri, 6 Jun 2014 16:01:01 +0100 Subject: [PATCH] Priority values are inherited now. However, they would be better inherited only during sorting, as otherwise they show up in the UI and possibly get recorded in the userlist using their inherited values. Part of #165 work. --- src/backend/graph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/graph.cpp b/src/backend/graph.cpp index 340a3b87..11448642 100644 --- a/src/backend/graph.cpp +++ b/src/backend/graph.cpp @@ -209,6 +209,8 @@ namespace loot { //parentPriority is now the highest priority value of any plugin that the current plugin needs to load after. //Set the current plugin's priority to parentPlugin. + if (graph[*vit].Priority() < parentPriority) + graph[*vit].Priority(parentPriority); } }