Fix opower efficacy copy

This commit is contained in:
Kurt
2019-07-15 14:34:19 -07:00
committed by GitHub
parent 5faeb58378
commit 86c8cb9ba5

View File

@@ -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);
}
}
}
}