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:
parent
fe912b2eaa
commit
ff7d4ad5cc
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue