From 3995dc439c97e0f8bf7b51ca9a8ebaad6483b916 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Fri, 20 Sep 2013 10:18:37 +0100 Subject: [PATCH] Fixed priority comparisons giving the wrong result. --- src/backend/graph.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/graph.cpp b/src/backend/graph.cpp index 756f4650..53da85da 100644 --- a/src/backend/graph.cpp +++ b/src/backend/graph.cpp @@ -188,11 +188,11 @@ namespace boss { vertex_t vertex, parentVertex; if (graph[*vit].Priority() < graph[*vit2].Priority()) { - parentVertex = *vit2; - vertex = *vit; - } else { parentVertex = *vit; vertex = *vit2; + } else { + parentVertex = *vit2; + vertex = *vit; } if (!boost::edge(parentVertex, vertex, graph).second &&