diff --git a/libopenmpt/xmp-openmpt.cpp b/libopenmpt/xmp-openmpt.cpp index 7e6f68e543f..aabea093175 100644 --- a/libopenmpt/xmp-openmpt.cpp +++ b/libopenmpt/xmp-openmpt.cpp @@ -741,9 +741,6 @@ static char * build_xmplay_tags( const openmpt::module & mod, int32_t subsong = if ( subsong >= 0 && static_cast( subsong ) < subsong_names.size() ) { first_subsong += subsong; last_subsong = first_subsong + 1; - } else - { - last_subsong = first_subsong + 1; } for ( auto subsong_name = first_subsong; subsong_name != last_subsong; subsong_name++ ) {