Decompile fn_20957 (CooldownOwner::Register)

Batch #12213 by cremane: 0 byte-identical, 1 confirmed by peer review.

- fn_20957 CooldownOwner::Register: logic confirmed by peer review

Peer-reviewed-by: Yommy, Tanke, dori
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-05 15:03:57 +00:00
commit ff7d4ad5cc

View file

@ -11,8 +11,8 @@ CooldownOwner::CooldownOwner() : m_initialized(false) {
// OFFSET: 0x00CA61A0
// FUNCTION: fn_20957
void CooldownOwner::Register(unsigned id, std::uint32_t duration, std::uint32_t start, std::uint32_t elapsed) {
this->m_values.erase(id);
this->m_values.emplace(id, CooldownState(0, 0, 0, duration, start, elapsed, 1));
this->Remove(id);
this->m_values.insert(std::make_pair(id, CooldownState(0, 0, 0, duration, start, elapsed, 1)));
}
// OFFSET: 0x00CA64B0