Decompile fn_09597 (UINewSelectCharWnd::UpdateSlotButtons)

Batch #14737 by secret: 0 byte-identical, 1 confirmed by peer review.

- fn_09597 UINewSelectCharWnd::UpdateSlotButtons: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Tanke, codeplay
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-07 17:57:45 +00:00
commit 42faaa34e8

View file

@ -1148,12 +1148,8 @@ void UINewSelectCharWnd::UpdateSlotButtons() {
}
static_cast<UISlotBmpButton*>(this->m_slotButtons2[index])->SetSlot(this->m_slotStatus[slot] ? -1 : slot, slot);
if (slot < g_session.m_producibleSlotCount && this->m_slotStatus[slot] == 1) {
if (slot < g_session.m_validSlotCount) {
this->m_slotButtons2[index]->SendMsg(nullptr, 431, 0, 0, 0, 0);
} else {
this->m_slotButtons2[index]->SendMsg(nullptr, 431, 1, 0, 0, 0);
}
if (slot < g_session.m_producibleSlotCount && this->m_slotStatus[slot] == 1 && slot < g_session.m_validSlotCount) {
this->m_slotButtons2[index]->SendMsg(nullptr, 431, 0, 0, 0, 0);
} else {
this->m_slotButtons2[index]->SendMsg(nullptr, 431, 1, 0, 0, 0);
}