marca paràmetre animation com a const al constructor de Balloon i Item

This commit is contained in:
2026-05-16 21:34:10 +02:00
parent 7d8aac6121
commit f10be8c277
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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<std::string> *animation, SDL_Renderer *renderer) {
Balloon::Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, Texture *texture, const std::vector<std::string> *animation, SDL_Renderer *renderer) {
sprite_ = new AnimatedSprite(texture, renderer, "", animation);
disable();