mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fixed priority comparisons giving the wrong result.
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user