summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-16 20:14:12 +0800
committerrekado <rekado@elephly.net>2013-01-16 20:14:12 +0800
commitf5ca0b00b0f66778c0b6ccc2dfc6c27ca9967a41 (patch)
treeb5ddbeb1e1cc6b965d4abdac1f9560be878de2b4
parentb4cb590eb69c1633bf48b1b1007d962b6a7e7bd5 (diff)
wrap conditional block in curly braces
-rw-r--r--src/mdaPiano.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp
index 9c5a999..39a1d95 100644
--- a/src/mdaPiano.cpp
+++ b/src/mdaPiano.cpp
@@ -52,8 +52,9 @@ unsigned mdaPiano::find_free_voice(unsigned char key, unsigned char velocity) {
//is this a retriggered note during sustain?
if (sustain) {
for (unsigned i = 0; i < NVOICES; ++i) {
- if ((voices[i]->get_key() == key) && (voices[i]->is_sustained()))
+ if ((voices[i]->get_key() == key) && (voices[i]->is_sustained())) {
return i;
+ }
}
}