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:
parent
094962a26e
commit
65ef67e0f1
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue