summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/SMAPI/Framework/Content/AssetDataForImage.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI/Framework/Content/AssetDataForImage.cs b/src/SMAPI/Framework/Content/AssetDataForImage.cs
index 46c2a22e..ea04f57a 100644
--- a/src/SMAPI/Framework/Content/AssetDataForImage.cs
+++ b/src/SMAPI/Framework/Content/AssetDataForImage.cs
@@ -160,13 +160,13 @@ namespace StardewModdingAPI.Framework.Content
// merge pixels
for (int i = 0; i < pixelCount; i++)
{
- ref Color above = ref sourceData[i];
- ref Color below = ref mergedData[i];
+ Color above = sourceData[i];
+ Color below = mergedData[i];
// shortcut transparency
if (above.A < MinOpacity)
continue;
- if (below.A < MinOpacity)
+ if (below.A < MinOpacity || above.A == byte.MaxValue)
mergedData[i] = above;
// merge pixels