From 91d2a78c0c30682eb26deb758ade3f3574cc66fb Mon Sep 17 00:00:00 2001 From: jove Date: Thu, 10 Aug 2023 23:50:53 +0100 Subject: [PATCH] missed a spot --- src/bionics.cpp | 6 +++--- src/veh_interact.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bionics.cpp b/src/bionics.cpp index df654de1069d..fa7b6d2ea1f8 100644 --- a/src/bionics.cpp +++ b/src/bionics.cpp @@ -2140,7 +2140,7 @@ void Character::perform_uninstall( bionic_id bid, int difficulty, int success, detached_ptr cbm; if( bid->itype().is_valid() && !bid.obj().has_flag( flag_BIONIC_FAULTY ) ) { cbm = item::spawn( bid.c_str() ); - cbm.faults.emplace( fault_bionic_nonsterile ); + cbm->faults.emplace( fault_bionic_nonsterile ); } else { cbm = item::spawn( itype_burnt_out_bionic ); } @@ -2218,8 +2218,8 @@ bool Character::uninstall_bionic( const bionic &target_cbm, monster &installer, detached_ptr cbm = item::spawn( iid, calendar::start_of_cataclysm ); if( itemtype.is_valid() ) { - cbm->faults.emplace( fault_bionic_nonsterile ); - } + cbm->faults.emplace( fault_bionic_nonsterile ); + } get_map().add_item( patient.pos(), std::move( cbm ) ); } else { bionics_uninstall_failure( installer, patient, difficulty, success, adjusted_skill ); diff --git a/src/veh_interact.cpp b/src/veh_interact.cpp index c8c018790d39..5487f1c20181 100644 --- a/src/veh_interact.cpp +++ b/src/veh_interact.cpp @@ -3025,12 +3025,12 @@ void act_vehicle_unload_fuel( vehicle *veh ) detached_ptr plutonium = item::spawn( fuel, calendar::turn, qty / PLUTONIUM_CHARGES ); add_msg( m_info, _( "You unload %s from the vehicle." ), plutonium->display_name() ); veh->drain( fuel, qty - ( qty % PLUTONIUM_CHARGES ) ); - you.i_add_or_drop( std::move(plutonium) ); + you.i_add_or_drop( std::move( plutonium ) ); } else { detached_ptr solid_fuel = item::spawn( fuel, calendar::turn, qty ); add_msg( m_info, _( "You unload %s from the vehicle." ), solid_fuel->display_name() ); veh->drain( fuel, qty ); - you.i_add_or_drop( std::move(solid_fuel) ); + you.i_add_or_drop( std::move( solid_fuel ) ); } }