# HG changeset patch # User Matti Hamalainen # Date 1425550136 -7200 # Node ID eca2784bff75f1d1234b413c3cd0db498a8320e7 # Parent cdba23d3fd0dcd7cb704816edee6cf8efa71ce73 It seems that the number of rows in XM format version 0x0102 needs + 1. diff -r cdba23d3fd0d -r eca2784bff75 minijss/jloadxm.c --- a/minijss/jloadxm.c Thu Mar 05 11:36:00 2015 +0200 +++ b/minijss/jloadxm.c Thu Mar 05 12:08:56 2015 +0200 @@ -263,7 +263,8 @@ JSSERROR(DMERR_FREAD, DMERR_FREAD, "Could not read pattern header data #%d.\n", index); - xmP.nrows = tmp; + + xmP.nrows = ((Uint16) tmp) + 1; } else {