Fix injectiondebug loading

woww I search for the start but never use it, wp
thanks Cuestion24
This commit is contained in:
Kurt
2015-10-13 19:10:55 -07:00
parent 468bf14dad
commit 77b4f9cc0f

View File

@@ -559,7 +559,7 @@ private void openFile(byte[] input, string path, string ext)
CB_BoxSelect.SelectedIndex = 0;
for (int i = 0; i < input.Length / (9*30); i++)
{
byte[] data = input.Skip(0xE8 * i).Take(0xE8).ToArray();
byte[] data = input.Skip(offset + 0xE8 * i).Take(0xE8).ToArray();
Array.Copy(data, 0, savefile, SaveGame.Box + i*0xE8, 0xE8);
setPokedex(PKX.decryptArray(data)); // Set the Pokedex data
}