diff minijss/jloadxm.c @ 2506:609c6bcf0dac

Add (a redundant) check for XM version.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 29 Apr 2020 01:14:30 +0300
parents e0f9200b94ad
children f5bdd6ed298e
line wrap: on
line diff
--- a/minijss/jloadxm.c	Tue Apr 28 23:24:14 2020 +0300
+++ b/minijss/jloadxm.c	Wed Apr 29 01:14:30 2020 +0300
@@ -341,6 +341,7 @@
             headSize = 4 + 1 + 1 + 2;
         }
         else
+        if (module->intVersion == 0x0104)
         {
             // 0x0104 has 16-bit word for nrows
             ret = dmf_read_le16(inFile, &xmP.nrows);