Commit e2e5a4cf authored by Anton Gladky's avatar Anton Gladky
Browse files

Fix bug in MatchMaker.

Typo in max-min function.
parent 154d03a2
......@@ -6,7 +6,7 @@ YADE_PLUGIN((MatchMaker));
Real MatchMaker::operator()(int id1, int id2, Real val1, Real val2) const {
const int minId = std::min(id1, id2);
const int maxId = std::max(id2, id2);
const int maxId = std::max(id1, id2);
const auto foundMatchItem = matchSet.find (std::make_pair(minId, maxId));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment