summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2007-08-24 00:27:39 +0000
committerSimon Howard2007-08-24 00:27:39 +0000
commiteef2733d509c77f6803da1393aceaf21c204cb0f (patch)
tree92091a2ffbf7b79cf19654102f7a9eadb3ca2fc0
parent241399e4037ec2add225daff2050ad433c9fbcdc (diff)
downloadchocolate-doom-eef2733d509c77f6803da1393aceaf21c204cb0f.tar.gz
chocolate-doom-eef2733d509c77f6803da1393aceaf21c204cb0f.tar.bz2
chocolate-doom-eef2733d509c77f6803da1393aceaf21c204cb0f.zip
Initialise tracksize variable before mus2mid conversion, otherwise it is
not reset the next time we convert a mid Subversion-branch: /trunk/chocolate-doom Subversion-revision: 958
-rw-r--r--src/mus2mid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mus2mid.c b/src/mus2mid.c
index 603bd020..6844bfd9 100644
--- a/src/mus2mid.c
+++ b/src/mus2mid.c
@@ -91,7 +91,7 @@ static unsigned int queuedtime = 0;
// Counter for the length of the track
-static unsigned int tracksize = 0;
+static unsigned int tracksize;
static byte mus2midi_translation[] =
{
@@ -429,6 +429,7 @@ boolean mus2mid(MEMFILE *musinput, MEMFILE *midioutput)
// writing MIDI data...
mem_fwrite(midiheader, 1, sizeof(midiheader), midioutput);
+ tracksize = 0;
// Now, process the MUS file:
while (!hitscoreend)