From 6f1eee21b9a50e5a11c4300be1784b595830340f Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sun, 24 Sep 2023 08:28:02 +0200 Subject: [PATCH] =?UTF-8?q?FIX:=20faltaba=20pasar=20el=20puntero=20de=20se?= =?UTF-8?q?ccion=20a=20la=20secci=C3=B3n=20de=20las=20instrucciones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/instructions.cpp | 3 ++- source/instructions.h | 2 +- source/title.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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; }