diff options
Diffstat (limited to 'src/mixer.cpp')
-rw-r--r-- | src/mixer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mixer.cpp b/src/mixer.cpp index 7742c55a1..401a9c0ba 100644 --- a/src/mixer.cpp +++ b/src/mixer.cpp @@ -157,12 +157,13 @@ void MxMixSamples(void *buffer, uint samples) MixerChannel *MxAllocateChannel() { MixerChannel *mc; - for (mc = _channels; mc != endof(_channels); mc++) + for (mc = _channels; mc != endof(_channels); mc++) { if (!mc->active) { free(mc->memory); mc->memory = NULL; return mc; } + } return NULL; } |