From 37fb527d5bcf5cecf718f250ff17d3e90d15c32c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Wed, 2 Jun 2021 16:30:16 +0200 Subject: [PATCH] little fix --- sources/Component/Animation/AnimationsComponent.hpp | 1 - sources/System/Animation/AnimationsSystem.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sources/Component/Animation/AnimationsComponent.hpp b/sources/Component/Animation/AnimationsComponent.hpp index 62e2e13b..463f241f 100644 --- a/sources/Component/Animation/AnimationsComponent.hpp +++ b/sources/Component/Animation/AnimationsComponent.hpp @@ -60,5 +60,4 @@ namespace BBM //! @brief assignment operator AnimationsComponent &operator=(const AnimationsComponent &) = delete; }; - } diff --git a/sources/System/Animation/AnimationsSystem.cpp b/sources/System/Animation/AnimationsSystem.cpp index 7e54adbd..fb9f79e0 100644 --- a/sources/System/Animation/AnimationsSystem.cpp +++ b/sources/System/Animation/AnimationsSystem.cpp @@ -27,6 +27,6 @@ namespace BBM if (anim.isDisabled()) return; model.member.setAnimation(anim.getCurrentModelAnim()); - anim.setCurrentAnimFrameCounter(anim.getCurrentAnimFrameCounter() + 1); + anim.incCurrentAnimFrameCounter(); } } \ No newline at end of file