summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/SMAPI/Framework/Content/AssetDataForImage.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/Content/AssetDataForImage.cs b/src/SMAPI/Framework/Content/AssetDataForImage.cs
index 70fa369f..f00d2d4c 100644
--- a/src/SMAPI/Framework/Content/AssetDataForImage.cs
+++ b/src/SMAPI/Framework/Content/AssetDataForImage.cs
@@ -187,7 +187,7 @@ namespace StardewModdingAPI.Framework.Content
}
if (startIndex == -1)
- return;
+ return; // apparently a completely blank texture?
int endIndex = -1;
for (int i = pixelCount - 1; i >= startIndex; i--)
@@ -200,8 +200,9 @@ namespace StardewModdingAPI.Framework.Content
}
if (endIndex == -1)
- return;
+ return; // should never happen
+ // Calculate new Y bounds
int topoffset = startIndex / sourceArea.Width;
int bottomoffset = endIndex / sourceArea.Width;