Skip to content

Commit 551e2ea

Browse files
committed
Update OsuFreeplayState.hx
1 parent 2c06867 commit 551e2ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/states/freeplay/OsuFreeplayState.hx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,13 +855,15 @@ class OsuFreeplayState extends MusicBeatState
855855
var week:WeekData = WeekData.weeksLoaded.get(WeekData.weeksList[FreeplayManager.songList[i].week]);
856856
Difficulty.loadFromWeek(week);
857857

858-
if (FreeplayManager.songList[i].songName == FreeplayManager.songList[songBoxGrp.members[curSelected].songID].songName) {
858+
if (FreeplayManager.songList[i].songName == FreeplayManager.songList[curSelected].songName) {
859859
trace(songName);
860860
trueInt = i+1;
861861
for (j in 0...Difficulty.list.length)
862862
{
863863

864-
var songBox:SongBox = new SongBox(320, 100);
864+
var songBox:DiffBox = new DiffBox(320, 100);
865+
songBox.difID = j;
866+
songBox.difName = Difficulty.list[j];
865867
songBox.loadGraphic(Paths.image('OSUState/bars/background2'));
866868
songBox.setGraphicSize(650, 100);
867869
songBox.setColorTransform(-1, -1, -1, 1, FreeplayManager.songList[i].color[0][0], FreeplayManager.songList[i].color[0][1], FreeplayManager.songList[i].color[0][2], 1);

0 commit comments

Comments
 (0)