diff --git a/src/toolkit/matl_sell_policy.cc b/src/toolkit/matl_sell_policy.cc index cbabf09997..84748f8f21 100644 --- a/src/toolkit/matl_sell_policy.cc +++ b/src/toolkit/matl_sell_policy.cc @@ -285,7 +285,7 @@ void MatlSellPolicy::GetMatlTrades( trade_mat = mat; } - if (ignore_comp_ && it->request->target()->comp() != trade_mat->comp()) { + if (ignore_comp_ && !AlmostEq(it->request->target()->comp(), trade_mat->comp())) { trade_mat->Transmute(it->request->target()->comp()); } responses.push_back(std::make_pair(*it, trade_mat));