Skip to content

Commit

Permalink
comment about taking the first item from the packaged vector
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearkatie committed Jul 18, 2024
1 parent 8f585ce commit a9d8f20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/source.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a9d8f20

Please sign in to comment.