changeset 2472:fd02e78f6fdc

Allocate empty pattern for JSSMOD as well.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 27 Apr 2020 03:15:19 +0300
parents e0f9200b94ad
children f5848606d5ad
files minijss/jloadjss.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/minijss/jloadjss.c	Mon Apr 27 03:13:14 2020 +0300
+++ b/minijss/jloadjss.c	Mon Apr 27 03:15:19 2020 +0300
@@ -481,6 +481,9 @@
         module->orderList[index] = (tmp == 0xffff) ? jsetNotSet : tmp;
     }
 
+    // Allocate the empty pattern
+    module->patterns[jsetMaxPatterns] = jssAllocatePattern(64, module->nchannels);
+
     // Parse the patterns
     for (index = 0; index < module->npatterns; index++)
     {