changeset 152:c56f85a32912

Correct the displayed instrument numbers.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 06 Oct 2012 04:22:46 +0300
parents 8708b0354eb8
children 0b2866e25bf1
files viewmod.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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]);
         }
     }