ft2-clone

Fasttracker 2 clone
Log | Files | Refs | README | LICENSE

commit b287017bcf9cca024c504d954a8f1397d04d75ee
parent 08789ac8d8f793d2ebbfd30e4d9565c1a5445085
Author: Olav Sørensen <olav.sorensen@live.no>
Date:   Tue,  9 Apr 2024 12:08:34 +0200

Fix note-overflow count on song transpose

Diffstat:
Msrc/ft2_edit.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ft2_edit.c b/src/ft2_edit.c @@ -909,7 +909,7 @@ static uint32_t countOverflowingNotes(uint8_t mode, int8_t addValue, bool allIns { note_t *p = pattern[i]; if (p == NULL) - return 0; // empty pattern + continue; // empty pattern, skip it for (int32_t row = 0; row < patternNumRows[i]; row++, p += pitch) { @@ -1052,7 +1052,7 @@ static void doTranspose(uint8_t mode, int8_t addValue, bool allInstrumentsFlag) { note_t *p = pattern[i]; if (p == NULL) - continue; // empty pattern + continue; // empty pattern, skip it for (int32_t row = 0; row < patternNumRows[i]; row++, p += pitch) {