ref: 8a7016b017aaa0a852c6fc55135aa6b35d315864
parent: 3ac27a045f216fe44bad86c85c37fec385af74dc
author: Olav Sørensen <olav.sorensen@live.no>
date: Tue Apr 9 08:09:01 EDT 2024
Fix note-overflow count on song transpose
--- a/src/ft2_edit.c
+++ b/src/ft2_edit.c
@@ -909,7 +909,7 @@
{
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 @@
{
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)
{