Decompile fn_21861 (CGameMode::ReceiveGuildLeave2)

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

- fn_21861 CGameMode::ReceiveGuildLeave2: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-12 03:51:32 +00:00
commit 7d245e2719

View file

@ -7307,8 +7307,9 @@ void CGameMode::ReceiveGuildExpulsion2(const unsigned char* data) {
void CGameMode::ReceiveGuildLeave2(const unsigned char* data) {
const auto* packet = reinterpret_cast<const GuildMemberLeftPacket2*>(data);
GuildInfo* guildInfo = &g_guildInfo;
char reason[40];
strcpy_s(reason, sizeof(reason), packet->name);
char reason[41];
strcpy_s(reason, 40, packet->name);
reason[40] = '\0';
if (packet->characterId == g_session.m_gid) {
ClearGuildShortcutSkills();