diff --git a/source/instructions.cpp b/source/instructions.cpp index be4a004..2989eae 100644 --- a/source/instructions.cpp +++ b/source/instructions.cpp @@ -4,7 +4,7 @@ const Uint8 SELF = 0; // Constructor -Instructions::Instructions(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input, Lang *lang) +Instructions::Instructions(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input, Lang *lang, section_t *section) { // Copia los punteros this->renderer = renderer; @@ -12,6 +12,7 @@ Instructions::Instructions(SDL_Renderer *renderer, Screen *screen, Asset *asset, this->asset = asset; this->input = input; this->lang = lang; + this->section = section; // Reserva memoria para los punteros Texture *item1 = new Texture(renderer, asset->get("item_points1_disk.png")); diff --git a/source/instructions.h b/source/instructions.h index 1d5af42..f62aaa0 100644 --- a/source/instructions.h +++ b/source/instructions.h @@ -58,7 +58,7 @@ private: public: // Constructor - Instructions(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input, Lang *lang); + Instructions(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input, Lang *lang, section_t *section); // Destructor ~Instructions(); diff --git a/source/title.cpp b/source/title.cpp index 45df3b3..57a732f 100644 --- a/source/title.cpp +++ b/source/title.cpp @@ -980,7 +980,7 @@ void Title::run() // Ejecuta la parte donde se muestran las instrucciones void Title::runInstructions(mode_e mode) { - instructions = new Instructions(renderer, screen, asset, input, lang); + instructions = new Instructions(renderer, screen, asset, input, lang, section); instructions->run(mode); delete instructions; }