Skip to content

Commit

Permalink
Fix Null ref exception in SliderOptionAdjust
Browse files Browse the repository at this point in the history
Subnautica switched to use the same sliderBackground as BZ and so it was not being found and causing a null exception when a slider was changed in the mod options
  • Loading branch information
MrPurple6411 committed Dec 23, 2022
1 parent 95ea92d commit 5c0d8f0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions SMLHelper/Options/SliderModOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,7 @@ protected virtual void UpdateLabel()

private class SliderOptionAdjust : ModOptionAdjust
{
#if SUBNAUTICA
private const string sliderBackground = "Slider/Background";
#elif BELOWZERO
private const string sliderBackground = "Slider/Slider/Background";
#endif
private const float spacing_MainMenu = 30f;
private const float spacing_GameMenu = 10f;
private const float valueSpacing = 15f; // used in game menu
Expand Down

0 comments on commit 5c0d8f0

Please sign in to comment.