refactor: manually resets singletons (#3395)
This commit is contained in:
parent
1357b66091
commit
ea5d9584da
3 changed files with 21 additions and 0 deletions
|
|
@ -51,6 +51,8 @@ CAnimatedVariable::~CAnimatedVariable() {
|
|||
}
|
||||
|
||||
void CAnimatedVariable::unregister() {
|
||||
if (!g_pAnimationManager)
|
||||
return;
|
||||
std::erase_if(g_pAnimationManager->m_vAnimatedVariables, [&](const auto& other) { return other == this; });
|
||||
m_bIsRegistered = false;
|
||||
disconnectFromActive();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue