Skip to content

Commit

Permalink
Merge pull request #79275 from RenechCDDA/fix_heli_repair_bug
Browse files Browse the repository at this point in the history
Simple parts are always simple
  • Loading branch information
GuardianDll authored Jan 23, 2025
2 parents 46e90ce + bb6befb commit 77939d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4620,9 +4620,7 @@ bool vehicle::would_repair_prevent_flyable( const vehicle_part &vp, const Charac
if( flyable && !rotors.empty() ) {
if( vp.info().has_flag( "SIMPLE_PART" ) ||
vp.info().has_flag( "AIRCRAFT_REPAIRABLE_NOPROF" ) ) {
vpart_position vppos = vpart_position( const_cast<vehicle &>( *this ),
index_of_part( const_cast<vehicle_part *>( &vp ) ) );
return !vppos.is_inside();
return false;
} else {
return !pc.has_proficiency( proficiency_prof_aircraft_mechanic );
}
Expand Down

0 comments on commit 77939d0

Please sign in to comment.