From 25780ae857ad69399fbf1dc416092854398ebe1e Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 1 Dec 2025 00:16:59 -0600 Subject: [PATCH] fix(ui): correct wrong comparison in CSimpleSlider::SetValue --- src/ui/CSimpleSlider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/CSimpleSlider.cpp b/src/ui/CSimpleSlider.cpp index 2e81d32..032c5c0 100644 --- a/src/ui/CSimpleSlider.cpp +++ b/src/ui/CSimpleSlider.cpp @@ -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; }