1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Stepan Moskovchenko 2007-01-10 17:53:54 +00:00
parent 094962a26e
commit 65ef67e0f1

View file

@ -188,7 +188,7 @@ void pressNote(int ch, int note, int vol)
if(voices[a].isUsed==0) if(voices[a].isUsed==0)
break; break;
} }
if(a==MAX_VOICES-1) if(a==MAX_VOICES)
{ {
// printf("\nVoice kill"); // printf("\nVoice kill");
// printf("\nToo many voices playing at once. No more left"); // printf("\nToo many voices playing at once. No more left");