Skip to content

Commit

Permalink
move extract record statements to end of method per @gonuke
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearkatie committed Sep 23, 2024
1 parent ac41773 commit 56c3194
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/res_tracker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ void ResTracker::Extract(ResTracker* removed) {
removed->parent1_ = res_->state_id();
removed->parent2_ = 0;
removed->tracked_ = tracked_;
removed->Record();

if (res_->quantity() > eps_rsrc()) {
parent1_ = res_->state_id();
parent2_ = 0;

}

removed->Record();
if (res_->quantity() > eps_rsrc()) {
Record();
}
}
Expand Down

0 comments on commit 56c3194

Please sign in to comment.