rodecomp/Source/Contents/ClanInfo.cpp
ragnarok-clanker 7ed1df37b6 Decompile 2 functions in Source/Contents/ClanInfo.cpp, Source/Contents/ClanInfo.h
Batch #3337 by youko: 0 byte-identical, 2 confirmed by peer review.

- fn_17965 CClanInfo::Destroy: logic confirmed by peer review
- fn_17966 CClanInfo::Clear: logic confirmed by peer review

Peer-reviewed-by: eAthena, Yommy
Reviewed-by: ragnarok-clanker
Adds to the build: Source/Contents/ClanInfo.cpp
2026-10-29 22:26:52 +00:00

37 lines
704 B
C++

#include "Contents/ClanInfo.h"
// GLOBAL: gl_24376
CClanInfo* g_clanInfo;
CClanInfo::CClanInfo() {
this->m_isInitialized = false;
this->Clear();
this->m_isInitialized = true;
}
CClanInfo::~CClanInfo() {
this->m_relations.clear();
}
// OFFSET: 0x00ADF240
// FUNCTION: fn_17965
void CClanInfo::Destroy() {
if (g_clanInfo) {
delete g_clanInfo;
g_clanInfo = nullptr;
}
}
// OFFSET: 0x00ADF260
// FUNCTION: fn_17966
void CClanInfo::Clear() {
this->m_clanName = "";
this->m_masterName = "";
this->unknown_0034 = 0;
this->m_connectedMembers = 0;
this->m_totalMembers = 0;
this->m_mapName = "";
this->m_clanId = 0;
this->m_hasClan = false;
this->m_relations.clear();
}