Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT committed Jan 24, 2020
1 parent 88fd4c4 commit 4c6ed77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/computer_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ void computer_session::action_download_software()
g->u.moves -= 30;
item software( miss->get_item_id(), 0 );
software.mission_id = comp.mission_id;
usb->contents.clear();
usb->contents.clear_items();
usb->put_in( software );
print_line( _( "Software downloaded." ) );
} else {
Expand All @@ -723,10 +723,10 @@ void computer_session::action_blood_anal()
print_error( _( "ERROR: Please remove all but one sample from centrifuge." ) );
} else if( items.only_item().contents.empty() ) {
print_error( _( "ERROR: Please only use container with blood sample." ) );
} else if( items.only_item().contents.front().typeId() != "blood" ) {
} else if( items.only_item().contents.legacy_front().typeId() != "blood" ) {
print_error( _( "ERROR: Please only use blood samples." ) );
} else { // Success!
const item &blood = items.only_item().contents.front();
const item &blood = items.only_item().contents.legacy_front();
const mtype *mt = blood.get_mtype();
if( mt == nullptr || mt->id == mtype_id::NULL_ID() ) {
print_line( _( "Result: Human blood, no pathogens found." ) );
Expand All @@ -740,7 +740,7 @@ void computer_session::action_blood_anal()
if( query_bool( _( "Download data?" ) ) ) {
if( item *const usb = pick_usb() ) {
item software( "software_blood_data", 0 );
usb->contents.clear();
usb->contents.clear_items();
usb->put_in( software );
print_line( _( "Software downloaded." ) );
} else {
Expand Down Expand Up @@ -1327,7 +1327,7 @@ void computer_session::failure_destroy_blood()
print_error( _( "ERROR: Please use blood-contained samples." ) );
} else if( items.only_item().contents.empty() ) {
print_error( _( "ERROR: Blood draw kit, empty." ) );
} else if( items.only_item().contents.front().typeId() != "blood" ) {
} else if( items.only_item().contents.legacy_front().typeId() != "blood" ) {
print_error( _( "ERROR: Please only use blood samples." ) );
} else {
print_error( _( "ERROR: Blood sample destroyed." ) );
Expand Down

0 comments on commit 4c6ed77

Please sign in to comment.