summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorStepan Moskovchenko <stevenm@rockbox.org>2007-01-10 17:53:54 +0000
committerStepan Moskovchenko <stevenm@rockbox.org>2007-01-10 17:53:54 +0000
commit65ef67e0f14856d52e6321ae7d908d4407fb6b01 (patch)
tree594d0d1dae8d4b5cb0c153287510880af039647d /apps
parent094962a26e0b344b0c27531888208c1062b3ae43 (diff)
downloadrockbox-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')
-rw-r--r--apps/plugins/midi/sequencer.c2
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");