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

This commit is contained in:
fallenoak 2025-12-01 00:16:59 -06:00
parent c91c86151b
commit 25780ae857
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

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;
}