From d1095c3f72cc50605c2d55b0c8ab98c5ad7ceb03 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Tue, 30 Sep 2014 16:40:34 -0700 Subject: [PATCH] Correct state reference to vibrato sine table --- Frameworks/modplay/modplay/ft2play.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/modplay/modplay/ft2play.c b/Frameworks/modplay/modplay/ft2play.c index 2ff3b420e..caa7cc295 100644 --- a/Frameworks/modplay/modplay/ft2play.c +++ b/Frameworks/modplay/modplay/ft2play.c @@ -1546,7 +1546,7 @@ static void FixaEnvelopeVibrato(PLAYER *p, StmTyp *ch) autoVibTmp = (((0 - ((ch->EVibPos >> 1) & 0x00FF)) + 64) & 127) - 64; else // sine - autoVibTmp = VibSineTab[ch->EVibPos]; + autoVibTmp = p->VibSineTab[ch->EVibPos]; ch->FinalPeriod = ch->OutPeriod + ((autoVibTmp * ch->EVibAmp) / 16384); if (ch->FinalPeriod > (32000 - 1)) ch->FinalPeriod = 0; // Yes, FT2 zeroes it out