Decompile fn_14716 (CUIVScrollBar::SetPosition)

Batch #13101 by SapitoSucio: 1 byte-identical, 0 confirmed by peer review.

- fn_14716 CUIVScrollBar::SetPosition: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-06 05:10:56 +00:00
commit 05d6c671da

View file

@ -405,8 +405,8 @@ void CUIVScrollBar::SetVisible(int value) {
void CUIVScrollBar::SetPosition(int value) {
int zero = 0;
const int* clamped = &this->maximum;
if (value <= this->maximum) {
clamped = value >= 0 ? &value : &zero;
if (this->maximum >= value) {
clamped = value < 0 ? &zero : &value;
}
if (!this->dragging) {
this->position = *clamped;