diff --git a/source/game/entities/balloon.cpp b/source/game/entities/balloon.cpp index 7e9c85c..928c2c3 100644 --- a/source/game/entities/balloon.cpp +++ b/source/game/entities/balloon.cpp @@ -9,7 +9,7 @@ #include "game/defaults.hpp" // for PLAY_AREA_LEFT, PLAY_AREA_RIGHT, PLAY_AR... // Constructor -Balloon::Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, Texture *texture, std::vector *animation, SDL_Renderer *renderer) { +Balloon::Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, Texture *texture, const std::vector *animation, SDL_Renderer *renderer) { sprite_ = new AnimatedSprite(texture, renderer, "", animation); disable(); diff --git a/source/game/entities/balloon.h b/source/game/entities/balloon.h index 57547cb..6a1e658 100644 --- a/source/game/entities/balloon.h +++ b/source/game/entities/balloon.h @@ -60,8 +60,8 @@ class Balloon { static constexpr int POWERBALL_SCREENPOWER_MINIMUM = 10; static constexpr int POWERBALL_COUNTER = 8; - Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, Texture *texture, std::vector *animation, SDL_Renderer *renderer); // Constructor - ~Balloon(); // Destructor + Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, Texture *texture, const std::vector *animation, SDL_Renderer *renderer); // Constructor + ~Balloon(); // Destructor Balloon(const Balloon &) = delete; auto operator=(const Balloon &) -> Balloon & = delete; diff --git a/source/game/entities/item.cpp b/source/game/entities/item.cpp index 35fa9f7..234bd22 100644 --- a/source/game/entities/item.cpp +++ b/source/game/entities/item.cpp @@ -7,7 +7,7 @@ class Texture; // Constructor -Item::Item(Id id, float x, float y, Texture *texture, std::vector *animation, SDL_Renderer *renderer) { +Item::Item(Id id, float x, float y, Texture *texture, const std::vector *animation, SDL_Renderer *renderer) { sprite_ = new AnimatedSprite(texture, renderer, "", animation); this->id_ = id; diff --git a/source/game/entities/item.h b/source/game/entities/item.h index 17fd763..62db6eb 100644 --- a/source/game/entities/item.h +++ b/source/game/entities/item.h @@ -23,8 +23,8 @@ class Item { COFFEE_MACHINE = 6, }; - Item(Id id, float x, float y, Texture *texture, std::vector *animation, SDL_Renderer *renderer); // Constructor - ~Item(); // Destructor + Item(Id id, float x, float y, Texture *texture, const std::vector *animation, SDL_Renderer *renderer); // Constructor + ~Item(); // Destructor Item(const Item &) = delete; auto operator=(const Item &) -> Item & = delete;