- Make sure Tempo is initialized before creating SMFs.

SVN r2684 (trunk)
This commit is contained in:
Randy Heit 2010-09-04 02:57:36 +00:00
parent 070ec75785
commit 84b9de8c14
1 changed files with 1 additions and 0 deletions

View File

@ -969,6 +969,7 @@ void MIDIStreamer::CreateSMF(TArray<BYTE> &file)
CheckCaps(MOD_MIDIPORT);
IgnoreLoops = true;
DoRestart();
Tempo = InitialTempo;
file.Reserve(sizeof(StaticMIDIhead));
memcpy(&file[0], StaticMIDIhead, sizeof(StaticMIDIhead));