- For some reason, I missed this change to xm_note_off().

SVN r4119 (trunk)
This commit is contained in:
Randy Heit 2013-02-08 02:34:54 +00:00
parent d1201bb9d1
commit f283e81b81

View file

@ -1586,7 +1586,8 @@ static void it_note_off(IT_PLAYING *playing)
static void xm_note_off(DUMB_IT_SIGDATA *sigdata, IT_CHANNEL *channel)
{
if (channel->playing) {
if (!(sigdata->instrument[channel->instrument-1].volume_envelope.flags & IT_ENVELOPE_ON))
if (!channel->instrument || channel->instrument > sigdata->n_instruments ||
!(sigdata->instrument[channel->instrument-1].volume_envelope.flags & IT_ENVELOPE_ON))
//if (!(entry->mask & IT_ENTRY_INSTRUMENT))
// dunno what that was there for ...
channel->volume = 0;