summaryrefslogtreecommitdiff
path: root/src/helpers/AnimatedVariable.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-12 11:27:31 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-12 11:27:31 +0200
commitff0f535c28018eeb5164f3576904748b73136202 (patch)
tree0180a5d51034754efe36c6bc352eb198aca4827c /src/helpers/AnimatedVariable.cpp
parent07e208aa73a69505264e8a2922699e09ad708d58 (diff)
Added workspace animations
Diffstat (limited to 'src/helpers/AnimatedVariable.cpp')
-rw-r--r--src/helpers/AnimatedVariable.cpp4
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