diff --git a/src/iexamine.cpp b/src/iexamine.cpp index 4f298d37674c..9d6afdc388b5 100644 --- a/src/iexamine.cpp +++ b/src/iexamine.cpp @@ -860,11 +860,13 @@ void iexamine::toggle_lights( player &/*p*/, const tripoint &examp ) map &here = get_map(); const auto flag = here.has_flag_furn( "L_OFF", examp ) ? "L_OFF" : "L_ON"; + add_msg( _( here.furn( examp ).obj().message ) ); + for( const auto &light_loc : here.find_furnitures_with_flag_in_omt( examp, flag ) ) { here.furn_set( light_loc, here.get_furn_transforms_into( light_loc ) ); }; - add_msg( _( here.furn( examp ).obj().message ) ); + } /**