build script fixin

This commit is contained in:
Cameron Taylor 2020-10-08 17:54:47 -07:00
parent 001dccb50a
commit 132782b777

View file

@ -415,7 +415,10 @@ class PlayState extends FlxTransitionableState
}
else
Conductor.songPosition = FlxG.sound.music.time;
var playerTurn:Int = totalBeats % (sectionLengths[curSection] * 8);
var playerTurn:Int = 0;
if (sectionLengths.length > curSection)
playerTurn = totalBeats % (sectionLengths[curSection] * 8);
if (playerTurn == (sectionLengths[curSection] * 8) - 1 && !sectionScored)
{