comparison 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
comparison
equal deleted inserted replaced
151:8708b0354eb8 152:c56f85a32912
445 "ExtInstruments:\n" 445 "ExtInstruments:\n"
446 "---------------\n" 446 "---------------\n"
447 ); 447 );
448 for (i = 0; i < mod->nextInstruments; i++) 448 for (i = 0; i < mod->nextInstruments; i++)
449 { 449 {
450 printf("#%03i: ", i); 450 printf("#%03i: ", i + 1);
451 printExtInstrument(stdout, mod->extInstruments[i]); 451 printExtInstrument(stdout, mod->extInstruments[i]);
452 } 452 }
453 } 453 }
454 454
455 if (optViewInstruments) 455 if (optViewInstruments)
458 "Instruments:\n" 458 "Instruments:\n"
459 "------------\n" 459 "------------\n"
460 ); 460 );
461 for (i = 0; i < mod->ninstruments; i++) 461 for (i = 0; i < mod->ninstruments; i++)
462 { 462 {
463 printf("#%03i: ", i); 463 printf("#%03i: ", i + 1);
464 printInstrument(stdout, mod->instruments[i]); 464 printInstrument(stdout, mod->instruments[i]);
465 } 465 }
466 } 466 }
467 467
468 // Free module data 468 // Free module data