diff --git a/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Forms.cs b/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Forms.cs index 40b4c2c315..0e3f72f859 100644 --- a/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Forms.cs +++ b/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Forms.cs @@ -481,7 +481,7 @@ namespace BizHawk.Client.EmuHawk control .GetType() .GetProperty(property) - .SetValue(control, Convert.ChangeType(value, form.GetType().GetProperty(property).PropertyType), null); + .SetValue(control, Convert.ChangeType(value, control.GetType().GetProperty(property).PropertyType), null); } } }