diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2019-09-26 09:47:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-26 09:47:48 -0400 |
| commit | bae5e3795ecaf8dee7f2a48e2e8c2ebaae9786e8 (patch) | |
| tree | 658bba277bd4b520580d41143e21f48834a2827e | |
| parent | fc99f1f5630d506638836bc8d69e43dc376aa95d (diff) | |
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
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 369f63b13..c3dc6f7f2 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -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; } } |
