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
This commit is contained in:
Anthony Lavado
2019-09-26 09:47:48 -04:00
committed by GitHub
parent fc99f1f563
commit bae5e3795e

View File

@@ -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;
}
}