wrap conditional block in curly braces
authorrekado <rekado@elephly.net>
Wed, 16 Jan 2013 12:14:12 +0000 (20:14 +0800)
committerrekado <rekado@elephly.net>
Wed, 16 Jan 2013 12:14:12 +0000 (20:14 +0800)
src/mdaPiano.cpp

index 9c5a999..39a1d95 100644 (file)
@@ -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;
+      }
     }
   }