Skip to content

Commit

Permalink
i didn't realize it's trivially copyable whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
moxian committed Jan 12, 2025
1 parent 204de66 commit d7239b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7882,7 +7882,7 @@ time_duration vehicle::folding_time() const
const vehicle_part_range vpr = get_all_parts();
return std::accumulate( vpr.begin(), vpr.end(), time_duration(),
[]( time_duration acc, const vpart_reference & part ) {
return std::move( acc ) + ( part.part().removed ? time_duration() :
return acc + ( part.part().removed ? time_duration() :
part.info().get_folding_time() );
} );
}
Expand All @@ -7892,7 +7892,7 @@ time_duration vehicle::unfolding_time() const
const vehicle_part_range vpr = get_all_parts();
return std::accumulate( vpr.begin(), vpr.end(), time_duration(),
[]( time_duration acc, const vpart_reference & part ) {
return std::move( acc ) + ( part.part().removed ? time_duration() :
return acc + ( part.part().removed ? time_duration() :
part.info().get_unfolding_time() );
} );
}
Expand Down

0 comments on commit d7239b0

Please sign in to comment.