From 84b9de8c14bbe7563eb8174e0c31d2bcf94445e4 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 4 Sep 2010 02:57:36 +0000 Subject: [PATCH] - Make sure Tempo is initialized before creating SMFs. SVN r2684 (trunk) --- src/sound/music_midistream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sound/music_midistream.cpp b/src/sound/music_midistream.cpp index 085c996e2..454ff0d3f 100644 --- a/src/sound/music_midistream.cpp +++ b/src/sound/music_midistream.cpp @@ -969,6 +969,7 @@ void MIDIStreamer::CreateSMF(TArray &file) CheckCaps(MOD_MIDIPORT); IgnoreLoops = true; DoRestart(); + Tempo = InitialTempo; file.Reserve(sizeof(StaticMIDIhead)); memcpy(&file[0], StaticMIDIhead, sizeof(StaticMIDIhead));