Mercurial > hg > dmlib
diff minijss/jloadjss.c @ 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 | dcf1016f3d27 |
children | 9807ae37ad69 |
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++) {