From a7c8883e997c73e14dc1067483d67aed5b7f9d15 Mon Sep 17 00:00:00 2001 From: lostsquirrel Date: Thu, 12 Dec 2024 13:18:22 +0000 Subject: [PATCH] prioritize smaller hCost over gCost. --- rts/Sim/Path/HAPFS/PathDataTypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rts/Sim/Path/HAPFS/PathDataTypes.h b/rts/Sim/Path/HAPFS/PathDataTypes.h index bd27617bb8..11b8c7463e 100644 --- a/rts/Sim/Path/HAPFS/PathDataTypes.h +++ b/rts/Sim/Path/HAPFS/PathDataTypes.h @@ -40,7 +40,7 @@ struct PathNode { /// This needs to guarantee that the sorting is stable. struct lessCost { inline bool operator() (const PathNode* x, const PathNode* y) const { - return std::tie(x->fCost, x->gCost, x->nodeNum) > std::tie(y->fCost, y->gCost, y->nodeNum); + return std::tie(x->fCost, y->gCost, x->nodeNum) > std::tie(y->fCost, x->gCost, y->nodeNum); } };