Fix for null images

This commit is contained in:
Kurt 2014-08-06 17:10:01 -07:00
parent c18429009a
commit 3dd6969db1

View file

@ -13,6 +13,7 @@ namespace PKHeX
{
Bitmap overlayImage = (Bitmap)overLayer;
Bitmap newImage = (Bitmap)baseLayer;
if (baseLayer == null) return overLayer;
for (int i = 0; i < (overlayImage.Width * overlayImage.Height); i++)
{
Color newColor = overlayImage.GetPixel(i % (overlayImage.Width), i / (overlayImage.Width));