diff options
author | Stepan Moskovchenko <stevenm@rockbox.org> | 2007-01-10 17:53:54 +0000 |
---|---|---|
committer | Stepan Moskovchenko <stevenm@rockbox.org> | 2007-01-10 17:53:54 +0000 |
commit | 65ef67e0f14856d52e6321ae7d908d4407fb6b01 (patch) | |
tree | 594d0d1dae8d4b5cb0c153287510880af039647d /apps/plugins/midi/sequencer.c | |
parent | 094962a26e0b344b0c27531888208c1062b3ae43 (diff) | |
download | rockbox-65ef67e0f14856d52e6321ae7d908d4407fb6b01.tar.gz rockbox-65ef67e0f14856d52e6321ae7d908d4407fb6b01.zip |
Fix a nasty little bug that would under the right conditions cause
memory corruption and other weirdness.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11978 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi/sequencer.c')
-rw-r--r-- | apps/plugins/midi/sequencer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/midi/sequencer.c b/apps/plugins/midi/sequencer.c index fdfd5d7620..d56bd26f5c 100644 --- a/apps/plugins/midi/sequencer.c +++ b/apps/plugins/midi/sequencer.c | |||
@@ -188,7 +188,7 @@ void pressNote(int ch, int note, int vol) | |||
188 | if(voices[a].isUsed==0) | 188 | if(voices[a].isUsed==0) |
189 | break; | 189 | break; |
190 | } | 190 | } |
191 | if(a==MAX_VOICES-1) | 191 | if(a==MAX_VOICES) |
192 | { | 192 | { |
193 | // printf("\nVoice kill"); | 193 | // printf("\nVoice kill"); |
194 | // printf("\nToo many voices playing at once. No more left"); | 194 | // printf("\nToo many voices playing at once. No more left"); |