fix animation manager

This commit is contained in:
2024-09-06 11:52:36 +01:00
parent 8091651cc7
commit 5813da7e97
5 changed files with 13 additions and 10 deletions

View File

@@ -49,7 +49,7 @@ class Animation
class AnimationManager
{
private:
std::map<std::string, Animation> *animations;
std::map<std::string, Animation*> animations;
std::map<std::string, bool> flip;
std::map<std::string, bool> autoRect;
std::string currentAnimation;

View File

@@ -14,4 +14,4 @@ private:
public:
Text(TTF_Font* font, SDL_Color color);
void draw(SDL_Renderer* renderer, std::string text, int x, int y);
};
};