aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth
diff options
context:
space:
mode:
authorathrxx2011-07-10 22:17:37 +0200
committerathrxx2011-07-10 22:19:32 +0200
commitb8f6257dded94aeef9b8290801353ca19137c60a (patch)
treeb9de85bcf883ef2b4a1123087be1064279a0ded2 /audio/softsynth
parentf1d3b35cc4e5d254b5a6738ec392aa0d61afeea2 (diff)
downloadscummvm-rg350-b8f6257dded94aeef9b8290801353ca19137c60a.tar.gz
scummvm-rg350-b8f6257dded94aeef9b8290801353ca19137c60a.tar.bz2
scummvm-rg350-b8f6257dded94aeef9b8290801353ca19137c60a.zip
SCUMM: minor bug fix in FM-Towns midi driver
Diffstat (limited to 'audio/softsynth')
-rw-r--r--audio/softsynth/fmtowns_pc98/towns_midi.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/softsynth/fmtowns_pc98/towns_midi.cpp b/audio/softsynth/fmtowns_pc98/towns_midi.cpp
index e415a0dda5..d69ed73ee6 100644
--- a/audio/softsynth/fmtowns_pc98/towns_midi.cpp
+++ b/audio/softsynth/fmtowns_pc98/towns_midi.cpp
@@ -464,9 +464,10 @@ int TownsMidiOutputChannel::advanceEffectEnvelope(EffectEnvelope *s, EffectDef *
s->currentLevel = t;
s->modWheelLast = s->modWheelState;
t = getEffectModLevel(t, s->modWheelState);
- if (t != d->phase)
+ if (t != d->phase) {
d->phase = t;
- retFlags |= 1;
+ retFlags |= 1;
+ }
}
if (--s->stepCounter)