Skip to content

Commit

Permalink
remove package id
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearkatie committed May 27, 2024
1 parent 89716fe commit 4fdcdce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/storage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,10 @@ void Storage::EnterNotify() {
}
buy_policy.Start();

int package_id_ = context()->GetPackageByName(package)->id();
int package_name_ = context()->GetPackageByName(package)->name();
if (out_commods.size() == 1) {
sell_policy.Init(this, &stocks, std::string("stocks"), 1e+299, false, sell_quantity, package_id_)
sell_policy.Init(this, &stocks, std::string("stocks"), 1e+299, false,
sell_quantity, package_name_)
.Set(out_commods.front())
.Start();

Expand Down

0 comments on commit 4fdcdce

Please sign in to comment.