aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Lavado <anthony@lavado.ca>2019-09-26 09:47:48 -0400
committerGitHub <noreply@github.com>2019-09-26 09:47:48 -0400
commitbae5e3795ecaf8dee7f2a48e2e8c2ebaae9786e8 (patch)
tree658bba277bd4b520580d41143e21f48834a2827e
parentfc99f1f5630d506638836bc8d69e43dc376aa95d (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.cs4
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;
}
}