From 431d32bc8613785a4003b408242eb46d3bc8b458 Mon Sep 17 00:00:00 2001 From: joveeater Date: Sat, 4 Nov 2023 12:11:33 +0000 Subject: [PATCH] fix: items not spilling from vehicles correctly (#3546) * 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> --- src/activity_item_handling.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/activity_item_handling.cpp b/src/activity_item_handling.cpp index b37e095f840f..1c5172391d4d 100644 --- a/src/activity_item_handling.cpp +++ b/src/activity_item_handling.cpp @@ -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 {