Fix SetImage to avoid out of range exception (#1798)

* Fix SetImage to avoid out of range exception

* Actually use the new images we've retrieved
pull/1801/head
Anthony Lavado 5 years ago committed by GitHub
parent fc99f1f563
commit bae5e3795e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2238,8 +2238,8 @@ namespace MediaBrowser.Controller.Entities
var currentCount = current.Length;
var newArr = new ItemImageInfo[currentCount + 1];
current.CopyTo(newArr, 0);
current[currentCount] = image;
ImageInfos = current;
newArr[currentCount] = image;
ImageInfos = newArr;
}
}

Loading…
Cancel
Save