From 13e672d0116e2f4c4b9b575b31d4bf14914c6d8b Mon Sep 17 00:00:00 2001 From: Geromatic Date: Thu, 13 Dec 2018 11:20:18 -0800 Subject: [PATCH] fixed multi-packet check --- Procedural-Midi/MidiAsset/Source/Midi/Private/MidiComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Procedural-Midi/MidiAsset/Source/Midi/Private/MidiComponent.cpp b/Procedural-Midi/MidiAsset/Source/Midi/Private/MidiComponent.cpp index 44f752d..f6da8a8 100644 --- a/Procedural-Midi/MidiAsset/Source/Midi/Private/MidiComponent.cpp +++ b/Procedural-Midi/MidiAsset/Source/Midi/Private/MidiComponent.cpp @@ -215,7 +215,7 @@ void UMidiComponent::handleCallback(MidiEvent* _event, long ms, int trackID) if(midi_type == 0xF0) data.Add(midi_type); // multi-packet check - else if (midi_type == 0xF7 && data.Num() > 3) { + else if (midi_type == 0xF7 && ptr->size() > 3) { data.Add((uint8)0xF0); isDivided = true; }