diff options
Diffstat (limited to 'src/helpers/AnimatedVariable.cpp')
| -rw-r--r-- | src/helpers/AnimatedVariable.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers/AnimatedVariable.cpp b/src/helpers/AnimatedVariable.cpp index 9e93ba3c..1e9dd74e 100644 --- a/src/helpers/AnimatedVariable.cpp +++ b/src/helpers/AnimatedVariable.cpp @@ -52,5 +52,9 @@ void CAnimatedVariable::create(ANIMATEDVARTYPE type, std::any val, float* speed, } CAnimatedVariable::~CAnimatedVariable() { + unregister(); +} + +void CAnimatedVariable::unregister() { g_pAnimationManager->m_lAnimatedVariables.remove(this); }
\ No newline at end of file |
