changeset 1315:7687412f9aef

Fix jssmod sample conversion flags storing .. urgh.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 20 Aug 2017 01:54:54 +0300
parents 4670907412e7
children 817a4d0c70b5
files tools/xm2jss.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/xm2jss.c	Sun Aug 20 01:47:45 2017 +0300
+++ b/tools/xm2jss.c	Sun Aug 20 01:54:54 2017 +0300
@@ -661,9 +661,9 @@
     if (module->instruments[index] != NULL)
     {
         JSSInstrument *inst = module->instruments[index];
-        Uint8 convFlags = (inst->flags & jsf16bit) ? flags16 : flags8;
+        inst->convFlags = (inst->flags & jsf16bit) ? flags16 : flags8;
         if (inst->data != NULL)
-            convFlags |= jsampHasData;
+            inst->convFlags |= jsampHasData;
 
         // Write instrument header to file
         if (!dm_fwrite_le32(outFile, inst->size) ||