rodecomp/Source/Contents/GuildInfo.cpp
ragnarok-clanker 33cddf807e Decompile fn_18030 (GuildInfo::ChangeMemberPosition)
Batch #3073 by bigodeira: 0 byte-identical, 1 confirmed by peer review.

- fn_18030 GuildInfo::ChangeMemberPosition: logic confirmed by peer review

Peer-reviewed-by: eAthena, youko, superintelligence
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
Adds to the build: Source/Contents/GuildInfo.cpp
2026-10-29 20:20:18 +00:00

20 lines
600 B
C++

#include "Contents/GuildInfo.h"
#include "Client/Mode/CGameMode.h"
#include "Client/Mode/ModeMgr.h"
#include "Contents/Actors/GameActor.h"
#include "Contents/Actors/Pc.h"
#include "Contents/World/World.h"
// OFFSET: 0x00AE41C0
// FUNCTION: fn_18030
void GuildInfo::ChangeMemberPosition(int aid, int cid, int position) {
for (auto it = this->m_members.begin(); it != this->m_members.end(); ++it) {
if (it->accountId == aid && it->characterId == cid) {
it->positionId = position;
it->positionName = this->m_positions[it->positionId];
return;
}
}
}
// OFFSET: 0x00AE4740