Skip to content

Commit 4b6e60b

Browse files
committed
added more to advanced tutorial, did some checking and found some (very minor) errors.
1 parent 2ec1a81 commit 4b6e60b

File tree

5 files changed

+1063
-3
lines changed

5 files changed

+1063
-3
lines changed

source/arche/tutorial_cpp/advanced_agent.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Implementing ``GetMatlBids()`` allows you to respond to requests with custom log
152152
double offer_qty = std::min(available, requested);
153153
154154
if (offer_qty > 0) {
155-
Material::Ptr offer = inventory.Pop(offer_qty);
155+
Material::Ptr offer = Material::CreateUntracked(offer_qty, output.Peek()->comp());
156156
port->AddBid(**it, offer, this);
157157
}
158158
}
@@ -220,8 +220,6 @@ processed:
220220
fuel_inventory.Push(mat);
221221
}
222222

223-
// Record trade details
224-
RecordTrade(mat, commod);
225223
}
226224
}
227225

0 commit comments

Comments
 (0)