shithub: dumb

Download patch

ref: 32c9bb420240cac2120e7e01c2683df88d1dc1ac
parent: 9e3012a7ce5fb52383f51c99061bc45921699f63
author: Chris Moeller <kode54@gmail.com>
date: Sun Nov 25 22:11:49 EST 2012

Corrected MOD reader to only check the known number of orders when calculating the pattern count

--- a/dumb/src/it/readmod.c
+++ b/dumb/src/it/readmod.c
@@ -631,7 +631,7 @@
 
 	/* Work out how many patterns there are. */
 	sigdata->n_patterns = -1;
-	for (i = 0; i < 128; i++)
+	for (i = 0; i < sigdata->n_orders; i++)
 		if (sigdata->n_patterns < sigdata->order[i])
 			sigdata->n_patterns = sigdata->order[i];
 	sigdata->n_patterns++;