build script fixin

This commit is contained in:
Cameron Taylor
2020-10-08 17:54:47 -07:00
parent 0062631472
commit 7d925ae0ec
2 changed files with 5 additions and 2 deletions

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)
{