Fix sprite get on gen7 personal editor

pngs were moved out of core project
This commit is contained in:
Kurt 2017-07-07 17:42:59 -07:00
parent 993abf01fc
commit d243f9940d

View File

@ -209,7 +209,7 @@ private void readEntry()
s = entry;
int[] specForm = {s, f};
string filename = "_" + specForm[0] + (CB_Species.SelectedIndex > Main.Config.MaxSpeciesID ? "_" + (specForm[1] + 1) : "");
Bitmap rawImg = (Bitmap)Core.Properties.Resources.ResourceManager.GetObject(filename) ?? Properties.Resources.unknown;
Bitmap rawImg = (Bitmap)Properties.Resources.ResourceManager.GetObject(filename) ?? Properties.Resources.unknown;
Bitmap bigImg = new Bitmap(rawImg.Width * 2, rawImg.Height * 2);
for (int x = 0; x < rawImg.Width; x++)
{