From 8c94df30939811b0a0b7edca10b44e7e26141ff1 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sat, 8 Feb 2020 18:16:31 +0100 Subject: [PATCH] Fix System.ArgumentOutOfRangeException Fixes #492 --- VocaluxeLib/Menu/CMenuPartySongSelection.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/VocaluxeLib/Menu/CMenuPartySongSelection.cs b/VocaluxeLib/Menu/CMenuPartySongSelection.cs index 41ecd0b6..5b8c95c2 100644 --- a/VocaluxeLib/Menu/CMenuPartySongSelection.cs +++ b/VocaluxeLib/Menu/CMenuPartySongSelection.cs @@ -224,7 +224,10 @@ namespace VocaluxeLib.Menu _SongMode = _SelectSlides[_SelectSlideSongMode].Selection; _Source = _SelectSlides[_SelectSlideSource].Selection; NumMedleySongs = NumMinMedleySongs + _SelectSlides[_SelectSlideNumMedleySongs].Selection; - Playlist = _PlaylistIDs[_SelectSlides[_SelectSlidePlaylist].Selection]; + if (_SelectSlides[_SelectSlidePlaylist].Selection >= 0) + Playlist = _PlaylistIDs[_SelectSlides[_SelectSlidePlaylist].Selection]; + else + Playlist = -1; if (_SelectSlides[_SelectSlideSorting].Selection != _Sorting) {