Skip to content

Commit

Permalink
fix: items not spilling from vehicles correctly (#3546)
Browse files Browse the repository at this point in the history
* Fix items not spilling from vehicles correctly

* style(autofix.ci): automated formatting

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
joveeater and autofix-ci[bot] authored Nov 4, 2023
1 parent 497c99f commit 431d32b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/activity_item_handling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ static void put_into_vehicle( Character &c, item_drop_reason reason,
if( !it ) {
continue;
}
veh.add_item( part, std::move( it ) );
// NOLINTNEXTLINE(bugprone-use-after-move)
it = veh.add_item( part, std::move( it ) );
if( !it ) {
into_vehicle = true;
} else {
Expand Down

0 comments on commit 431d32b

Please sign in to comment.