mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-17 08:03:47 +02: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:
parent
fc99f1f563
commit
bae5e3795e
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue