Decompile fn_09946 (UIOngoingQuestScrollWnd::RefreshHuntTexts)

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

- fn_09946 UIOngoingQuestScrollWnd::RefreshHuntTexts: logic confirmed by peer review

Peer-reviewed-by: Yommy, alisonrag, br4yan
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 23:13:28 +00:00
commit 5c3e193bc1

View file

@ -212,7 +212,7 @@ void UIOngoingQuestScrollWnd::RefreshHuntTexts() {
const short minLevel = quest.m_huntMinLevel[index];
const short maxLevel = quest.m_huntMaxLevel[index];
const char* name = quest.m_huntName[index];
if (minLevel > -1 && maxLevel > -1 && (minLevel != 0 || maxLevel != 0)) {
if (-1 < minLevel && -1 < maxLevel && (0 != minLevel || 0 != maxLevel)) {
if (minLevel == 0) {
text = static_cast<const std::string&>(FormatOwnedString("%s Lv.%d▼", name, maxLevel));
} else if (maxLevel == 0) {