From be045514ed048a2e29c2398725d5ce80949bfd6e Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 18 Jan 2024 13:29:00 -0500 Subject: [PATCH] Add test for SUCCESS --- LEGO1/omni/src/audio/mxmidipresenter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEGO1/omni/src/audio/mxmidipresenter.cpp b/LEGO1/omni/src/audio/mxmidipresenter.cpp index db65574a..5796fb67 100644 --- a/LEGO1/omni/src/audio/mxmidipresenter.cpp +++ b/LEGO1/omni/src/audio/mxmidipresenter.cpp @@ -95,7 +95,7 @@ MxResult MxMIDIPresenter::PutData() if (m_currentTickleState == e_streaming && m_chunk && !MusicManager()->GetMIDIInitialized()) { SetVolume(((MxDSSound*) m_action)->GetVolume()); - if (MusicManager()->InitializeMIDI(m_chunk->GetData(), 1)) + if (MusicManager()->InitializeMIDI(m_chunk->GetData(), 1) != SUCCESS) EndAction(); }