diff --git a/src/PlayerOptions.cpp b/src/PlayerOptions.cpp index 26d246566f..c8c66a2e3e 100644 --- a/src/PlayerOptions.cpp +++ b/src/PlayerOptions.cpp @@ -271,11 +271,11 @@ void PlayerOptions::FromString( const RString &sMultipleMods ) vector vs; split( sTemp, ",", vs, true ); RString sThrowAway; - FOREACH( RString, vs, s ) + for (RString &s : vs) { - if (!FromOneModString( *s, sThrowAway )) + if (!FromOneModString( s, sThrowAway )) { - LOG->Trace( "Attempted to load a non-existing mod \'%s\' for the Player. Ignoring.", (*s).c_str() ); + LOG->Trace( "Attempted to load a non-existing mod \'%s\' for the Player. Ignoring.", s.c_str() ); } } }