Skip to content

Commit

Permalink
missed a spot
Browse files Browse the repository at this point in the history
  • Loading branch information
joveeater committed Aug 10, 2023
1 parent ba4e860 commit 91d2a78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/bionics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2140,7 +2140,7 @@ void Character::perform_uninstall( bionic_id bid, int difficulty, int success,
detached_ptr<item> 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 );
}
Expand Down Expand Up @@ -2218,8 +2218,8 @@ bool Character::uninstall_bionic( const bionic &target_cbm, monster &installer,
detached_ptr<item> 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 );
Expand Down
4 changes: 2 additions & 2 deletions src/veh_interact.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3025,12 +3025,12 @@ void act_vehicle_unload_fuel( vehicle *veh )
detached_ptr<item> 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<item> 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 ) );
}
}

Expand Down

0 comments on commit 91d2a78

Please sign in to comment.