diff --git a/BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs b/BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs index 73853d6edb..31d49a27fc 100644 --- a/BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs +++ b/BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs @@ -40,6 +40,8 @@ namespace BizHawk.Client.EmuHawk _supressChangeEvents = true; + var canSetCpuRegisters = CanSetCpuRegisters; + foreach (var register in registers) { if (Controls.OfType().Any(p => p.Name == "FlagPanel")) @@ -59,7 +61,7 @@ namespace BizHawk.Client.EmuHawk }); } - if (CanSetCpuRegisters) + if (canSetCpuRegisters) { Controls