Fix crash when starting vocaluxe without avatars.
This commit is contained in:
1 parent
127f9edfdc
commit
27e880f9e9
1 file changed
+3
@@ -446,6 +446,8 @@ namespace Vocaluxe.Screens
|
|||||||
int selectedAvatarID = _SelectSlides[_SelectSlideAvatars].ValueIndex;
|
int selectedAvatarID = _SelectSlides[_SelectSlideAvatars].ValueIndex;
|
||||||
_SelectSlides[_SelectSlideAvatars].Clear();
|
_SelectSlides[_SelectSlideAvatars].Clear();
|
||||||
IEnumerable<CAvatar> avatars = CProfiles.GetAvatars();
|
IEnumerable<CAvatar> avatars = CProfiles.GetAvatars();
|
||||||
|
if (avatars != null)
|
||||||
|
{
|
||||||
foreach (CAvatar avatar in avatars)
|
foreach (CAvatar avatar in avatars)
|
||||||
{
|
{
|
||||||
_SelectSlides[_SelectSlideAvatars].AddValue(
|
_SelectSlides[_SelectSlideAvatars].AddValue(
|
||||||
@@ -454,6 +456,7 @@ namespace Vocaluxe.Screens
|
|||||||
avatar.ID,
|
avatar.ID,
|
||||||
-1);
|
-1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (keep)
|
if (keep)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user