shithub: dumb

Download patch

ref: 045efbd6fc579a78e304185e480c8c15b2b932c4
parent: 5b53815e1f271746627bde0bfce7140109b88f14
author: Chris Moeller <kode54@gmail.com>
date: Sat Dec 15 17:54:14 EST 2012

Fixed older pattern counting mode

--- a/dumb/src/it/readmod.c
+++ b/dumb/src/it/readmod.c
@@ -464,7 +464,7 @@
 	int n_channels;
 	int i;
 	unsigned long fft;
-	DUMBFILE *rem;
+	DUMBFILE *rem = NULL;
 
 	f = dumbfile_buffer_mod(f, &fft);
 	if (!f)
@@ -674,7 +674,6 @@
 	}
 	else
 	{
-		sigdata->n_patterns = 0;
 		for (i = 0; i < sigdata->n_orders; i++)
 		{
 			if (sigdata->order[i] > sigdata->n_patterns)