From 0dabf5ba03d2775ffb65a6adecb35bccdd7c5ea0 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 12:25:08 +0000 Subject: [PATCH] Decompile fn_22560 (CPc::~CPc) Batch #7871 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_22560 CPc::~CPc: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, secret, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Actors/Player.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Source/Contents/Actors/Player.cpp b/Source/Contents/Actors/Player.cpp index ca7fe995..d4a38f92 100644 --- a/Source/Contents/Actors/Player.cpp +++ b/Source/Contents/Actors/Player.cpp @@ -80,6 +80,21 @@ CPc::CPc() : footprintPosition() { } // OFFSET: 0x00DA7BA0 +// FUNCTION: fn_22560 +CPc::~CPc() { + for (int i = 0; i < 9; ++i) { + if (this->equipSprites[i] != nullptr) { + this->equipSprites[i]->Unlock(); + } + if (this->equipActions[i] != nullptr) { + this->equipActions[i]->Unlock(); + } + } + if (this->unknown_0490 != nullptr) { + g_windowMgr.Schedule(this->unknown_0490); + this->unknown_0490 = nullptr; + } +} // OFFSET: 0x00DAFE50 // FUNCTION: fn_22606