summaryrefslogtreecommitdiff
path: root/src/mixer.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-07-24 10:14:39 +0000
committeralberth <alberth@openttd.org>2010-07-24 10:14:39 +0000
commitbe6c0584240caf420b2475a0be036391e842e8af (patch)
tree6111751cf5526e1eb41176782d84766c4e9ed185 /src/mixer.cpp
parent645b6ce77345867fa96861843197481131566c46 (diff)
downloadopenttd-be6c0584240caf420b2475a0be036391e842e8af.tar.xz
(svn r20211) -Codechange: Indented code should have curly braces around it.
Diffstat (limited to 'src/mixer.cpp')
-rw-r--r--src/mixer.cpp3
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;
}