Decompile fn_03339 (CSkillActionMgr::GetInstance)

Batch #9851 by ntrl: 0 byte-identical, 1 confirmed by peer review.

- fn_03339 CSkillActionMgr::GetInstance: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy, superintelligence
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-02 02:50:16 +00:00
commit e0d25b6324
2 changed files with 10 additions and 1 deletions

View file

@ -347,7 +347,7 @@ CSkillActionMgr::~CSkillActionMgr() = default;
// OFFSET: 0x005B06F0
// FUNCTION: fn_03339
CSkillActionMgr* CSkillActionMgr::GetInstance() {
__forceinline CSkillActionMgr* CSkillActionMgr::GetInstance() {
if (!g_skillActionMgr) {
g_skillActionMgr = new (std::nothrow) CSkillActionMgr;
}
@ -3077,3 +3077,10 @@ void CSkillAction_HN_OVERCOMING_CRISIS::Slot11(int level, CGameActor* source, CG
}
}
class CSkillObjectActionRegistration {
public:
CSkillObjectActionRegistration(int skillId, std::function<CSkillObjectAction*()> factory);
};
// OFFSET: 0x00786450

View file

@ -138,6 +138,8 @@ public:
/* 000C */ std::map<int, std::function<CEfstAction*()>> m_efstActions;
/* 0014 */ std::map<int, std::function<CSkillObjectAction*()>> m_skillObjectActions;
// INLINED
__forceinline CSkillActionMgr() = default;
virtual ~CSkillActionMgr();
static CSkillActionMgr* GetInstance();