File tree Expand file tree Collapse file tree
Themes/Til Death/BGAnimations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -421,11 +421,13 @@ local function makeGoalDisplay(i)
421421 MouseLeftClickMessageCommand = function (self )
422422 if sg then
423423 if isOver (self ) and sg and goalsong and goalsteps then
424- SCREENMAN :GetTopScreen ():GetMusicWheel ():SelectSong (goalsong )
425- GAMESTATE :GetSongOptionsObject (" ModsLevel_Preferred" ):MusicRate (sg :GetRate ())
426- GAMESTATE :GetSongOptionsObject (" ModsLevel_Song" ):MusicRate (sg :GetRate ())
427- GAMESTATE :GetSongOptionsObject (" ModsLevel_Current" ):MusicRate (sg :GetRate ())
428- MESSAGEMAN :Broadcast (" GoalSelected" )
424+ local success = SCREENMAN :GetTopScreen ():GetMusicWheel ():SelectSong (goalsong )
425+ if success then
426+ GAMESTATE :GetSongOptionsObject (" ModsLevel_Preferred" ):MusicRate (sg :GetRate ())
427+ GAMESTATE :GetSongOptionsObject (" ModsLevel_Song" ):MusicRate (sg :GetRate ())
428+ GAMESTATE :GetSongOptionsObject (" ModsLevel_Current" ):MusicRate (sg :GetRate ())
429+ MESSAGEMAN :Broadcast (" GoalSelected" )
430+ end
429431 end
430432 end
431433 end
You can’t perform that action at this time.
0 commit comments