From 54aa2b639b9d95856926e4403f3171c83b4cf26e Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Wed, 3 Sep 2014 09:49:14 -0700 Subject: [PATCH] Oops --- Frameworks/modplay/modplay/ft2play.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frameworks/modplay/modplay/ft2play.c b/Frameworks/modplay/modplay/ft2play.c index eccae7013..784687b4d 100644 --- a/Frameworks/modplay/modplay/ft2play.c +++ b/Frameworks/modplay/modplay/ft2play.c @@ -1588,7 +1588,7 @@ static int16_t RelocateTon(PLAYER *p, int16_t inPeriod, int8_t addNote, StmTyp * if (outPeriod < 16) outPeriod = 16; - if (inPeriod >= Note2Period[(outPeriod - 16) >> 1]) + if (inPeriod >= p->Note2Period[(outPeriod - 16) >> 1]) { outPeriod -= fineTune; if (outPeriod & 0x00010000) @@ -1617,7 +1617,7 @@ static int16_t RelocateTon(PLAYER *p, int16_t inPeriod, int8_t addNote, StmTyp * if (outPeriod >= ((((8 * 12 * 16) + 15) * 2) - 1)) outPeriod = ((8 * 12 * 16) + 15) * 2; - return (Note2Period[outPeriod >> 1]); // 16-bit look-up, shift it down + return (p->Note2Period[outPeriod >> 1]); // 16-bit look-up, shift it down } static void TonePorta(PLAYER *p, StmTyp *ch)