From 7b54f66387b1efdc6bd6aa3ba29e91d03178e6fd Mon Sep 17 00:00:00 2001 From: Maximilian Seidler Date: Thu, 27 Nov 2025 17:49:29 +0100 Subject: [PATCH] better tick for loop --- tests/animation/Animation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/animation/Animation.cpp b/tests/animation/Animation.cpp index f376306..380fb12 100644 --- a/tests/animation/Animation.cpp +++ b/tests/animation/Animation.cpp @@ -47,8 +47,7 @@ CAnimationConfigTree animationTree; class CMyAnimationManager : public CAnimationManager { public: void tick() { - for (size_t i = 0; i < m_vActiveAnimatedVariables.size(); i++) { - const auto PAV = m_vActiveAnimatedVariables[i]; + for (const auto& PAV : m_vActiveAnimatedVariables) { if (!PAV || !PAV->ok() || !PAV->isBeingAnimated()) continue;