diff --git a/Source/Plugins/ColorPicker/Windows/LightColorPicker.cs b/Source/Plugins/ColorPicker/Windows/LightColorPicker.cs index 6b951b4e8afe3ceb4fc3edf7a4f54f43f4801acf..43ac74242ce759c4f0df84595a02975f5ef1675c 100755 --- a/Source/Plugins/ColorPicker/Windows/LightColorPicker.cs +++ b/Source/Plugins/ColorPicker/Windows/LightColorPicker.cs @@ -135,7 +135,7 @@ namespace CodeImp.DoomBuilder.ColorPicker.Windows colorPickerSlider1.OnValueChanged += OnSliderValueChanged; //either both of them or none are used - if(Array.IndexOf(LIGHT_USES_ANGLE_VALUE, referenceThing.DynamicLightType) != -1) + if(Array.IndexOf(LIGHT_USES_ANGLE_VALUE, referenceThing.DynamicLightType.LightNum) != -1) { showAllControls = true; colorPickerSlider2.Label = typeInfo.Args[4].Title + ":";