Steps to reproduce in plugin code
If the slider's default button is clicked now, VAM crashes. If the max value is set to any other value between 0 and 10, no crash - it will correctly set a new max value at the default value and apply the default value.
I tested with the min value as well:
However clicking the default button in this case does not cause a crash.
C#:
// create storable and slider with max and default e.g. 10
var jsf = new JSONStorableFloat("test", 10, 0, 10);
CreateSlider(jsf);
// update max value to 0
jsf.max = 0;
If the slider's default button is clicked now, VAM crashes. If the max value is set to any other value between 0 and 10, no crash - it will correctly set a new max value at the default value and apply the default value.
I tested with the min value as well:
C#:
// create storable and slider with min and default e.g. -10
var jsf = new JSONStorableFloat("test", -10, -10, 0);
CreateSlider(jsf);
// update min value to 0
jsf.min= 0;
However clicking the default button in this case does not cause a crash.