Decompile 2 functions in Source/UI/Edit/UIEditCtrl.cpp

Batch #15844 by eAthena: 0 byte-identical, 2 confirmed by peer review.

- fn_10899 UIEditCtrl3::DecodeLinkOptions: logic confirmed by peer review
- fn_10900 UIEditCtrl3::DecodeLinkCards: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy, alisonrag
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-10 13:03:24 +00:00
commit 76e5be4c0f

View file

@ -4294,10 +4294,10 @@ void UIEditCtrl3::DecodeLinkOptions(std::vector<int>& options, const char* text,
value += byte;
} else if (separator != byte && alternate != byte) {
--position;
options.push_back(this->DecodeLinkNumber(std::move(value)));
options.push_back(this->DecodeLinkNumber(value));
break;
} else {
options.push_back(this->DecodeLinkNumber(std::move(value)));
options.push_back(this->DecodeLinkNumber(value));
value.clear();
}
}
@ -4315,11 +4315,11 @@ int UIEditCtrl3::DecodeLinkCards(std::vector<int>& fields, const char* text, int
value += byte;
} else if (separator == byte) {
++count;
cards.push_back(this->DecodeLinkNumber(std::move(value)));
cards.push_back(this->DecodeLinkNumber(value));
value.clear();
} else {
--position;
cards.push_back(this->DecodeLinkNumber(std::move(value)));
cards.push_back(this->DecodeLinkNumber(value));
fields[index] = count;
for (unsigned int i = 0; i < cards.size(); ++i) {
fields[index + 1 + i] = cards[i];