[#modding] be more defensive when parsing slider values

Issue #12470 new
Ray created an issue

option sliders should probably be more defensive when interpreting the saved option value (e.g. using something like Value = int.TryParse(Options.GetOption(option.ID), out int opt) ? opt : (int.TryParse(option.Default, out int default) ? default : option.Min)). Otherwise this may lead to unexpected behavior when an option gets changed to a slider from a non-numeric option.

Comments (0)

  1. Log in to comment