Skip to content

Commit

Permalink
animation: fix addding vars in ::tick
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma committed Jan 11, 2025
1 parent 1507865 commit f020e5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ CAnimationConfigTree animationTree;
class CMyAnimationManager : public CAnimationManager {
public:
void tick() {
for (auto const& av : m_vActiveAnimatedVariables) {
const auto PAV = av.lock();
for (size_t i = 0; i < m_vActiveAnimatedVariables.size(); i++) {
const auto PAV = m_vActiveAnimatedVariables[i].lock();
if (!PAV || !PAV->ok())
continue;

Expand Down Expand Up @@ -80,7 +80,7 @@ class CMyAnimationManager : public CAnimationManager {
} break;
}

av->onUpdate();
PAV->onUpdate();
}

tickDone();
Expand Down

0 comments on commit f020e5d

Please sign in to comment.