diff --git a/src/overmap.cpp b/src/overmap.cpp index 20f4f0f27c2d6..a394791963d60 100644 --- a/src/overmap.cpp +++ b/src/overmap.cpp @@ -5167,7 +5167,7 @@ void overmap::place_roads( const overmap *north, const overmap *east, const over for( const auto &elem : roads_out ) { road_points.emplace_back( elem.xy() ); } - if( cities.size() == 0 ) { + if( cities.empty() ) { // If there's no cities in the overmap chose a random central point that special's road connections should path to fallback_road_connection_point = point_om_omt( rng( OMAPX / 4, ( 3 * OMAPX ) / 4 ), rng( OMAPY / 4, ( 3 * OMAPY ) / 4 ) ); diff --git a/src/overmap.h b/src/overmap.h index 64c04fdd2a01f..1659b86d7055a 100644 --- a/src/overmap.h +++ b/src/overmap.h @@ -348,7 +348,7 @@ class overmap bool nullbool = false; // NOLINT(cata-serialize) point_abs_om loc; // NOLINT(cata-serialize) // Random point used for special connections if there's no cities on the overmap, joins to all roads_out - std::optional fallback_road_connection_point; + std::optional fallback_road_connection_point; // NOLINT(cata-serialize) std::array layer; std::unordered_map scents;