Skip to content

Commit

Permalink
Appease our clang overlords
Browse files Browse the repository at this point in the history
  • Loading branch information
Procyonae committed Jan 20, 2024
1 parent f8d8dc3 commit a2b3544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/construction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ bool can_construct( const construction &con, const tripoint_bub_ms &p )
const furn_id f = here.furn( p );
const ter_id t = here.ter( p );
if( con.pre_specials.size() > 1 ) { // pre-functions
for( auto &special : con.pre_specials ) {
for( const auto &special : con.pre_specials ) {
if( !special( p ) ) {
return false;
}
Expand Down Expand Up @@ -1176,7 +1176,7 @@ void complete_construction( Character *you )
// This comes after clearing the activity, in case the function interrupts
// activities
if( built.post_specials.size() > 1 ) { // pre-functions
for( auto &special : built.post_specials ) {
for( const auto &special : built.post_specials ) {
special( terp, *you );
}
} else {
Expand Down

0 comments on commit a2b3544

Please sign in to comment.