diff --git a/src/components/AnimationComponent.cpp b/src/components/AnimationComponent.cpp index 31c4c327e..1c400b4d3 100644 --- a/src/components/AnimationComponent.cpp +++ b/src/components/AnimationComponent.cpp @@ -76,7 +76,7 @@ void AnimationComponent::update(int deltaTime) } } -void AnimationComponent::addChild(ImageComponent* gui) +void AnimationComponent::addChild(GuiComponent* gui) { mChildren.push_back(gui); } @@ -86,7 +86,7 @@ void AnimationComponent::moveChildren(int offsetx, int offsety) Vector2i move(offsetx, offsety); for(unsigned int i = 0; i < mChildren.size(); i++) { - ImageComponent* comp = mChildren.at(i); + GuiComponent* comp = mChildren.at(i); comp->setOffset(comp->getOffset() + move); } } diff --git a/src/components/AnimationComponent.h b/src/components/AnimationComponent.h index 99cbd35b7..4591c10c2 100644 --- a/src/components/AnimationComponent.h +++ b/src/components/AnimationComponent.h @@ -2,7 +2,6 @@ #define _ANIMATIONCOMPONENT_H_ #include "../GuiComponent.h" -#include "ImageComponent.h" #include #define ANIMATION_TICK_SPEED 16 @@ -18,12 +17,12 @@ public: void update(int deltaTime); - void addChild(ImageComponent* gui); + void addChild(GuiComponent* gui); private: unsigned char mOpacity; - std::vector mChildren; + std::vector mChildren; void moveChildren(int offsetx, int offsety); void setChildrenOpacity(unsigned char opacity);