fix(ui): correct wrong comparison in CSimpleSlider::SetValue

This commit is contained in:
fallenoak committed 2025-12-01 00:16:59 -06:00
1 parent c91c86151b
commit 25780ae857
1 file changed
+1 -1
+1 -1
View File
@@ -290,7 +290,7 @@ void CSimpleSlider::SetValue(float value) {
auto newValue = this->StepValue(v4);
// Clamp to max value
if (newValue + this->m_valueStep >= maxValue) {
if (newValue + this->m_valueStep > maxValue) {
newValue = maxValue;
}