Skip to content

Commit

Permalink
fix: -Werror=range-loop-construct (CleverRaven#77302)
Browse files Browse the repository at this point in the history
  • Loading branch information
mord0d authored Oct 31, 2024
1 parent 9d8dc2c commit 47225ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2093,7 +2093,7 @@ uint8_t map::get_known_connections_f( const tripoint &p,
{
std::map<tripoint_bub_ms, furn_id> tmp_override;

for( const auto element : override ) {
for( const auto &element : override ) {
tmp_override.insert( {tripoint_bub_ms( element.first ), element.second} );
}

Expand Down Expand Up @@ -2165,11 +2165,11 @@ uint8_t map::get_known_rotates_to_f( const tripoint &p,
std::map<tripoint_bub_ms, ter_id> temp_override;
std::map<tripoint_bub_ms, furn_id> temp_override_f;

for( const auto element : override ) {
for( const auto &element : override ) {
temp_override.insert( {tripoint_bub_ms( element.first ), element.second} );
}

for( const auto element : override_f ) {
for( const auto &element : override_f ) {
temp_override_f.insert( {tripoint_bub_ms( element.first ), element.second} );
}

Expand Down

0 comments on commit 47225ca

Please sign in to comment.