Decompile fn_13887 (UITagListBox::SendMsg)

Batch #17413 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_13887 UITagListBox::SendMsg: logic confirmed by peer review

Peer-reviewed-by: Yommy, cremane, bibinir
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-11 23:02:45 +00:00
commit ed76a25b2d

View file

@ -357,7 +357,7 @@ int UITagListBox::SendMsg(UIWindow* sender, int message, std::intptr_t argument1
UITagButton* tag = this->m_tagWindows[index];
if (tag) {
const int line = tag->m_value;
if (line < this->topLine || this->geometry.height / this->lineHeight - this->bottomMargin + this->topLine <= line) {
if (line < this->topLine || line >= this->geometry.height / this->lineHeight - this->bottomMargin + this->topLine) {
tag->Enable(0);
} else {
tag->Enable(1);