diff --git a/src/sound/music_smf_midiout.cpp b/src/sound/music_smf_midiout.cpp index 43755eb082..6284c504bb 100644 --- a/src/sound/music_smf_midiout.cpp +++ b/src/sound/music_smf_midiout.cpp @@ -661,6 +661,16 @@ DWORD *MIDISong2::SendCommand (DWORD *events, TrackInfo *track, DWORD delay, ptr events[2] = (MEVT_TEMPO << 24) | Tempo; events += 3; break; + + default: + if (delay != 0) + { + events[0] = delay; + events[1] = 0; + events[2] = MEVT_NOP << 24; + events += 3; + } + break; } track->TrackP += len; if (track->TrackP == track->MaxTrackP)