mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 16:33:25 -03:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user