diff --git a/src/reskit/soundtrack/engines/echo/dmf.rs b/src/reskit/soundtrack/engines/echo/dmf.rs index 3e9f401..3e85991 100644 --- a/src/reskit/soundtrack/engines/echo/dmf.rs +++ b/src/reskit/soundtrack/engines/echo/dmf.rs @@ -308,7 +308,8 @@ impl EchoFormat for DmfModule { // Iterate for each row, for each channel // Recall items are stored as self.channel_patterns[ channel ][ row_number ] let mut all_events: Vec = Vec::new(); - for row_number in 0..self.rows_per_pattern { + let rows_per_pattern: u32 = self.channel_patterns[ 0 ].len() as u32; + for row_number in 0..rows_per_pattern { let events_this_row: Vec = get_events_for_row( &mut channels, &self.instruments,