diff viewmod.c @ 152:c56f85a32912

Correct the displayed instrument numbers.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 06 Oct 2012 04:22:46 +0300
parents d6c2efa25aa4
children 245b15cd1919
line wrap: on
line diff
--- a/viewmod.c	Sat Oct 06 03:31:16 2012 +0300
+++ b/viewmod.c	Sat Oct 06 04:22:46 2012 +0300
@@ -447,7 +447,7 @@
         );
         for (i = 0; i < mod->nextInstruments; i++)
         {
-            printf("#%03i: ", i);
+            printf("#%03i: ", i + 1);
             printExtInstrument(stdout, mod->extInstruments[i]);
         }
     }
@@ -460,7 +460,7 @@
         );
         for (i = 0; i < mod->ninstruments; i++)
         {
-            printf("#%03i: ", i);
+            printf("#%03i: ", i + 1);
             printInstrument(stdout, mod->instruments[i]);
         }
     }