From a9d8f20e550ae1e1f07e633205826f4c204f8b4b Mon Sep 17 00:00:00 2001 From: Katie Mummah Date: Wed, 17 Jul 2024 20:35:51 -0500 Subject: [PATCH] comment about taking the first item from the packaged vector --- src/source.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/source.cc b/src/source.cc index dc20275db..99b578645 100644 --- a/src/source.cc +++ b/src/source.cc @@ -164,6 +164,9 @@ void Source::GetMatlTrades( Material::Ptr response; if (m_pkgd.size() > 0) { + // Because we responded (in GetMatlBids) with individual package-sized + // bids, each packaged vector is guaranteed to have no more than one + // package in it. This single packaged resource is our response response = m_pkgd[0]; shippable_trades -= 1; }