diff options
author | atravita-mods <94934860+atravita-mods@users.noreply.github.com> | 2022-08-22 23:50:52 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-10-08 13:27:07 -0400 |
commit | a3b8546ec8975ef1941e7618cef773c41d5c423f (patch) | |
tree | 866f536eb736ed0c44d35439089f592df3a38449 /src/SMAPI | |
parent | 09fd12ddfe89c5d36b1db66167dd741e4f8a7e0f (diff) | |
download | SMAPI-a3b8546ec8975ef1941e7618cef773c41d5c423f.tar.gz SMAPI-a3b8546ec8975ef1941e7618cef773c41d5c423f.tar.bz2 SMAPI-a3b8546ec8975ef1941e7618cef773c41d5c423f.zip |
cleanup and comments
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Framework/Content/AssetDataForImage.cs | 5 |
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; |