Skip to content

Commit

Permalink
prioritize smaller hCost over gCost.
Browse files Browse the repository at this point in the history
  • Loading branch information
lostsquirrel1 committed Dec 12, 2024
1 parent afce434 commit a7c8883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Sim/Path/HAPFS/PathDataTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

Expand Down

0 comments on commit a7c8883

Please sign in to comment.