From 6d48a253fe63b5e18ee03dd8c1f090323182f219 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Mon, 30 Jul 2018 19:42:28 +0300 Subject: [Experimental] Partially apply fixes to kode54's pull request --- src/adlmidi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/adlmidi.cpp') diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 751afcf..09cf7ea 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -449,12 +449,12 @@ ADLMIDI_EXPORT void adl_setLoopEnabled(ADL_MIDIPlayer *device, int loopEn) ADLMIDI_EXPORT void adl_setSoftPanEnabled(ADL_MIDIPlayer *device, int softPanEn) { - if (!device) + if(!device) return; MidiPlayer *play = GET_MIDI_PLAYER(device); - if (!play) + if(!play) return; - play->m_synth.m_softPanning = softPanEn != 0; + play->m_synth.m_softPanning = (softPanEn != 0); } /* !!!DEPRECATED!!! */ -- cgit v1.2.3