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
|
@ -2238,8 +2238,8 @@ namespace MediaBrowser.Controller.Entities
|
||||||
var currentCount = current.Length;
|
var currentCount = current.Length;
|
||||||
var newArr = new ItemImageInfo[currentCount + 1];
|
var newArr = new ItemImageInfo[currentCount + 1];
|
||||||
current.CopyTo(newArr, 0);
|
current.CopyTo(newArr, 0);
|
||||||
current[currentCount] = image;
|
newArr[currentCount] = image;
|
||||||
ImageInfos = current;
|
ImageInfos = newArr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user