Fix extrabyte load behavior

funny how nobody caught this for so long haha
Don't trigger a write on validation/during a load.
This commit is contained in:
Kurt
2022-05-30 18:17:12 -07:00
parent b0c489dd05
commit 5ae34854c7

View File

@@ -1211,7 +1211,7 @@ private void ReloadMetLocations(GameVersion version, int format)
private void UpdateExtraByteValue(object sender, EventArgs e)
{
if (CB_ExtraBytes.Items.Count == 0 || sender is not MaskedTextBox mtb)
if (!FieldsLoaded || CB_ExtraBytes.Items.Count == 0 || sender is not MaskedTextBox mtb)
return;
// Changed Extra Byte's Value
var value = Util.ToInt32(mtb.Text);