diff --git a/src/weakpoint.cpp b/src/weakpoint.cpp index eac0760b69c93..03a0b1a927b5e 100644 --- a/src/weakpoint.cpp +++ b/src/weakpoint.cpp @@ -69,7 +69,7 @@ void weakpoints::clear() void weakpoints::load( const JsonArray &ja ) { - for( const JsonObject &jo : ja ) { + for( const JsonObject jo : ja ) { weakpoint tmp; tmp.load( jo ); weakpoint_list.push_back( std::move( tmp ) );