marca paràmetre animation com a const al constructor de Balloon i Item
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
class Texture;
|
||||
|
||||
// Constructor
|
||||
Item::Item(Id id, float x, float y, Texture *texture, std::vector<std::string> *animation, SDL_Renderer *renderer) {
|
||||
Item::Item(Id id, float x, float y, Texture *texture, const std::vector<std::string> *animation, SDL_Renderer *renderer) {
|
||||
sprite_ = new AnimatedSprite(texture, renderer, "", animation);
|
||||
|
||||
this->id_ = id;
|
||||
|
||||
Reference in New Issue
Block a user