From 13acfb1c306f863b695f1aa2f678445bb39f4239 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 29 Jun 2022 12:06:09 +0200 Subject: [PATCH] fix disabling in animationmanager --- src/managers/AnimationManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp index 61221938..2774ee85 100644 --- a/src/managers/AnimationManager.cpp +++ b/src/managers/AnimationManager.cpp @@ -67,7 +67,7 @@ void CAnimationManager::tick() { if (!deltazero(av->m_fValue, av->m_fGoal)) { // for disabled anims just warp - if (av->m_pEnabled == 0 || animationsDisabled) { + if (*av->m_pEnabled == 0 || animationsDisabled) { av->warp(); break; } @@ -92,7 +92,7 @@ void CAnimationManager::tick() { if (!deltazero(av->m_vValue, av->m_vGoal)) { // for disabled anims just warp - if (av->m_pEnabled == 0 || animationsDisabled) { + if (*av->m_pEnabled == 0 || animationsDisabled) { av->warp(); break; } @@ -117,7 +117,7 @@ void CAnimationManager::tick() { if (!deltazero(av->m_cValue, av->m_cGoal)) { // for disabled anims just warp - if (av->m_pEnabled == 0 || animationsDisabled) { + if (*av->m_pEnabled == 0 || animationsDisabled) { av->warp(); break; }