Skip to content

Commit 01a28f3

Browse files
committed
Fixed when disabling a synth tremulant
1 parent 0812e3a commit 01a28f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/grandorgue/model/GOTremulant.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ void GOTremulant::OnDrawstopStateChanged(bool on) {
100100
m_PlaybackHandle = pSoundEngine ? pSoundEngine->StartTremulantSample(
101101
m_TremProvider, m_TremulantN, m_LastStop)
102102
: nullptr;
103-
on = (m_PlaybackHandle != nullptr);
104-
} else {
105-
assert(m_PlaybackHandle);
103+
} else if (m_PlaybackHandle) {
106104
m_LastStop = pSoundEngine
107105
? pSoundEngine->StopSample(m_TremProvider, m_PlaybackHandle)
108106
: 0;

0 commit comments

Comments
 (0)