dx: fix GetUserRivalMusicApi list index out of range

This commit is contained in:
Hay1tsme 2024-06-08 22:19:59 -04:00
parent 8b03f1a4f1
commit 319aea098f

View File

@ -600,6 +600,8 @@ class Mai2DX(Mai2Base):
num_user_songs = len(songs) num_user_songs = len(songs)
for x in range(next_index, upper_lim): for x in range(next_index, upper_lim):
if x >= num_user_songs:
break
tmp = songs[x]._asdict() tmp = songs[x]._asdict()
if tmp['musicId'] in rival_music_list: if tmp['musicId'] in rival_music_list: