summaryrefslogtreecommitdiff
path: root/src/SMAPI
diff options
context:
space:
mode:
authoratravita-mods <94934860+atravita-mods@users.noreply.github.com>2022-08-19 11:10:19 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-10-08 13:27:06 -0400
commitff523c619a040c8eb2d2f1c1a0d19c8fe83f1c75 (patch)
treee27a00c3e7945f40736e2942f6df5e452e68cb15 /src/SMAPI
parentd29c01b8155a6fe2607066da6f0a5cfb45b28d3c (diff)
downloadSMAPI-ff523c619a040c8eb2d2f1c1a0d19c8fe83f1c75.tar.gz
SMAPI-ff523c619a040c8eb2d2f1c1a0d19c8fe83f1c75.tar.bz2
SMAPI-ff523c619a040c8eb2d2f1c1a0d19c8fe83f1c75.zip
fix fast-track array copying
Diffstat (limited to 'src/SMAPI')
-rw-r--r--src/SMAPI/Framework/Content/AssetDataForImage.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Content/AssetDataForImage.cs b/src/SMAPI/Framework/Content/AssetDataForImage.cs
index 5f175217..9c71328f 100644
--- a/src/SMAPI/Framework/Content/AssetDataForImage.cs
+++ b/src/SMAPI/Framework/Content/AssetDataForImage.cs
@@ -64,7 +64,7 @@ namespace StardewModdingAPI.Framework.Content
int sourceIndex = areaY * areaWidth;
int targetIndex = 0;
- Array.Copy(source.Data, sourceIndex, sourceData, targetIndex, areaWidth);
+ Array.Copy(source.Data, sourceIndex, sourceData, targetIndex, pixelCount);
}
else