Skip to content

Commit

Permalink
Hopefully fix compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
CLIDragon committed Aug 30, 2024
1 parent f12bfe2 commit 6747a37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7669,7 +7669,8 @@ void vehicle::leak_fuel( vehicle_part &pt ) const
// leak in random directions but prefer closest tiles and avoid walls or other obstacles
std::vector<tripoint> tiles;
tiles.reserve( 9 );
find_point_closest_first( global_part_pos3( pt ), 1, [&here, &tiles]( const tripoint & e ) {
tripoint part_pos = global_part_pos3( pt );
find_point_closest_first( part_pos, 1, [&here, &tiles]( const tripoint & e ) {
if( here.passable( e ) ) {
tiles.push_back( e );
}
Expand Down

0 comments on commit 6747a37

Please sign in to comment.