diff options
Diffstat (limited to 'Stars45/Slider.cpp')
-rw-r--r-- | Stars45/Slider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Stars45/Slider.cpp b/Stars45/Slider.cpp index bc89883..5f09cea 100644 --- a/Stars45/Slider.cpp +++ b/Stars45/Slider.cpp @@ -425,7 +425,7 @@ void Slider::SetValue(int nNewValue, int index) { if (index >= 0 && index < MAX_VAL) { value[index] = nNewValue; - + if (index >= nvalues) nvalues = index+1; } |