From 140997956137140521ed13b224777e6089b3a712 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 3 Oct 2022 12:16:50 -0500 Subject: [PATCH] fix instrument movement not relaying to sub-songs properly when they have different pattern lengths --- src/engine/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 4f2c3a047..ea5ee5d0d 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -3303,7 +3303,7 @@ void DivEngine::exchangeIns(int one, int two) { for (size_t j=0; jpat[i].data[k]==NULL) continue; - for (int l=0; lpatLen; l++) { + for (int l=0; lpatLen; l++) { if (song.subsong[j]->pat[i].data[k]->data[l][2]==one) { song.subsong[j]->pat[i].data[k]->data[l][2]=two; } else if (song.subsong[j]->pat[i].data[k]->data[l][2]==two) {