diff --git a/pk3DS/Subforms/Gen6/OPower.cs b/pk3DS/Subforms/Gen6/OPower.cs index 68c10db..6b7d9e4 100644 --- a/pk3DS/Subforms/Gen6/OPower.cs +++ b/pk3DS/Subforms/Gen6/OPower.cs @@ -105,8 +105,7 @@ private void setEntry() powerData[entry][0x4] = otherCost; powerData[entry][0xE] = stage; powerData[entry][0xF] = lvlup; - - Array.Copy(powerData[entry], 0x12, BitConverter.GetBytes(efficacy), 0, 2); + BitConverter.GetBytes(efficacy).CopyTo(powerData[entry], 0x12); powerData[entry][0x14] = duration; // sbyte FF = -1 (no duration?) byte usability = (byte)NUD_Usability.Value; @@ -125,4 +124,4 @@ private void formClosing(object sender, FormClosingEventArgs e) File.WriteAllBytes(codebin, exefsData); } } -} \ No newline at end of file +}