diff --git a/src/reskit/soundtrack/dmf.rs b/src/reskit/soundtrack/dmf.rs index 2796e63..821a447 100644 --- a/src/reskit/soundtrack/dmf.rs +++ b/src/reskit/soundtrack/dmf.rs @@ -703,7 +703,7 @@ impl DmfModule { } // Now generate the Echo EEF envelope from volume_envelope/volume_repeat + arpeggio_envelope/arpeggio_repeat - let mut envelope: Vec = Vec::new(); + let mut envelope: Vec = vec![ 0x00 ]; for i in 0..volume_envelope.len() { envelope.push( get_eef_volume( volume_envelope[ i ] )? | get_eef_shift( arpeggio_envelope[ i ] )? ); }