Confirm fn_20961 (DestroyCooldownOwner)

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

- fn_20961 DestroyCooldownOwner: byte-identical (already on main)

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-12 11:10:34 +00:00
commit a887f8976d
2 changed files with 9 additions and 3 deletions

View file

@ -1,7 +1,8 @@
#include "UI/Cooldowns/CooldownOwner.h"
// INLINED
CooldownOwner::CooldownOwner() : m_initialized(false) {
CooldownOwner::CooldownOwner() {
this->m_initialized = false;
this->m_drawing.normal.clear();
this->m_drawing.reverse.clear();
this->m_values.clear();
@ -56,6 +57,12 @@ bool CreateCooldownOwner() {
return false;
}
if (!g_cooldownOwner->m_initialized) {
delete g_cooldownOwner;
g_cooldownOwner = nullptr;
return false;
}
return true;
}
// OFFSET: 0x00CA6610

View file

@ -8,7 +8,7 @@
class CooldownOwner {
public:
CooldownOwner();
__declspec(noinline) ~CooldownOwner();
~CooldownOwner();
void Register(unsigned id, std::uint32_t duration, std::uint32_t start, std::uint32_t elapsed);
void ClearReverseCommands();
@ -26,7 +26,6 @@ public:
return this->m_drawing;
}
private:
/* 0000 */ bool m_initialized;
/* 0004 */ CooldownDrawing m_drawing;
/* 001C */ std::map<unsigned, CooldownState> m_values;