Decompile fn_17270 (UIWindowMgr::RearrangeMiniPartyWindows)

Batch #11711 by cremane: 0 byte-identical, 1 confirmed by peer review.

- fn_17270 UIWindowMgr::RearrangeMiniPartyWindows: logic confirmed by peer review

Peer-reviewed-by: Yommy, KWDev
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-05 04:29:17 +00:00
commit a69dd90a67

View file

@ -62,11 +62,11 @@ void UIWindowMgr::RearrangeMiniPartyWindows() {
for (; cell != cells.end() && entry != this->snapExcluded.end(); ++cell, ++entry) {
MiniPartyGridPoint position;
reinterpret_cast<const MiniPartyGrid*>(&area)->GetWindowPosition(&position, *cell);
UIMiniPartyWnd* window = static_cast<UIMiniPartyWnd*>(*entry);
window->Move(position.x, position.y);
window->m_cell = *cell;
(*entry)->Move(position.x, position.y);
static_cast<UIMiniPartyWnd*>(*entry)->m_cell = *cell;
const int index = *cell;
const MessengerMember member = window->m_member;
const MessengerMember member = static_cast<UIMiniPartyWnd*>(*entry)->m_member;
g_session.SetRecord0734Value(member.accountId, index);
}
}