@@ -335,19 +335,21 @@ local function rankingLabel(i)
335
335
if not showOnline then
336
336
if ths then
337
337
local srate = ths :GetMusicRate ()
338
- whee :SelectSong (thssong )
339
- GAMESTATE :GetSongOptionsObject (" ModsLevel_Preferred" ):MusicRate (srate )
340
- GAMESTATE :GetSongOptionsObject (" ModsLevel_Song" ):MusicRate (srate )
341
- GAMESTATE :GetSongOptionsObject (" ModsLevel_Current" ):MusicRate (srate )
338
+ if whee :SelectSong (thssong ) then
339
+ GAMESTATE :GetSongOptionsObject (" ModsLevel_Preferred" ):MusicRate (srate )
340
+ GAMESTATE :GetSongOptionsObject (" ModsLevel_Song" ):MusicRate (srate )
341
+ GAMESTATE :GetSongOptionsObject (" ModsLevel_Current" ):MusicRate (srate )
342
+ end
342
343
end
343
344
elseif onlineScore and onlineScore .chartkey then
344
345
local song = SONGMAN :GetSongByChartKey (onlineScore .chartkey )
345
346
if song then
346
347
local srate = onlineScore .rate
347
- whee :SelectSong (song )
348
- GAMESTATE :GetSongOptionsObject (" ModsLevel_Preferred" ):MusicRate (srate )
349
- GAMESTATE :GetSongOptionsObject (" ModsLevel_Song" ):MusicRate (srate )
350
- GAMESTATE :GetSongOptionsObject (" ModsLevel_Current" ):MusicRate (srate )
348
+ if whee :SelectSong (song ) then
349
+ GAMESTATE :GetSongOptionsObject (" ModsLevel_Preferred" ):MusicRate (srate )
350
+ GAMESTATE :GetSongOptionsObject (" ModsLevel_Song" ):MusicRate (srate )
351
+ GAMESTATE :GetSongOptionsObject (" ModsLevel_Current" ):MusicRate (srate )
352
+ end
351
353
end
352
354
end
353
355
end
@@ -548,10 +550,11 @@ local function recentLabel(i)
548
550
if recentactive and ButtonActive (self ) then
549
551
if ths then
550
552
local srate = ths :GetMusicRate ()
551
- whee :SelectSong (thssong )
552
- GAMESTATE :GetSongOptionsObject (" ModsLevel_Preferred" ):MusicRate (srate )
553
- GAMESTATE :GetSongOptionsObject (" ModsLevel_Song" ):MusicRate (srate )
554
- GAMESTATE :GetSongOptionsObject (" ModsLevel_Current" ):MusicRate (srate )
553
+ if whee :SelectSong (thssong ) then
554
+ GAMESTATE :GetSongOptionsObject (" ModsLevel_Preferred" ):MusicRate (srate )
555
+ GAMESTATE :GetSongOptionsObject (" ModsLevel_Song" ):MusicRate (srate )
556
+ GAMESTATE :GetSongOptionsObject (" ModsLevel_Current" ):MusicRate (srate )
557
+ end
555
558
end
556
559
end
557
560
end
0 commit comments