Decompile fn_20960 (CreateCooldownOwner)

Batch #1355 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review.

- fn_20960 CreateCooldownOwner: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
This commit is contained in:
ragnarok-clanker 2026-10-28 11:08:09 +00:00
commit 69232871b3

View file

@ -8,12 +8,7 @@ CooldownOwner::CooldownOwner() : m_initialized(false) {
this->m_initialized = true;
}
// INLINED
CooldownOwner::~CooldownOwner() {
this->m_drawing.normal.clear();
this->m_drawing.reverse.clear();
this->m_values.clear();
}
// OFFSET: 0x00CA60D0
// OFFSET: 0x00CA61A0
// FUNCTION: fn_20957
@ -43,6 +38,21 @@ void CooldownOwner::Erase(unsigned id) {
// GLOBAL: gl_24487
CooldownOwner* g_cooldownOwner = nullptr;
// OFFSET: 0x00CA64C0
// FUNCTION: fn_20960
bool CreateCooldownOwner() {
if (g_cooldownOwner) {
return false;
}
g_cooldownOwner = new (std::nothrow) CooldownOwner;
if (!g_cooldownOwner) {
return false;
}
return true;
}
// OFFSET: 0x00CA6610
// FUNCTION: fn_20961
void DestroyCooldownOwner() {