mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-22 20:13:06 +00:00
Fix for null images
This commit is contained in:
parent
c18429009a
commit
3dd6969db1
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue