diff --git a/source/text.cpp b/source/text.cpp index e2b9a6d..8976e73 100644 --- a/source/text.cpp +++ b/source/text.cpp @@ -119,7 +119,7 @@ Text::Text(std::string textFile, Texture *texture) } // Crea los objetos - sprite = std::make_unique((SDL_Rect){0, 0, boxWidth, boxHeight}); + sprite = std::make_unique((SDL_Rect){0, 0, boxWidth, boxHeight}, texture); // Inicializa variables fixedWidth = false; @@ -139,7 +139,7 @@ Text::Text(textFile_t *textFile, Texture *texture) } // Crea los objetos - sprite = std::make_unique((SDL_Rect){0, 0, boxWidth, boxHeight}); + sprite = std::make_unique((SDL_Rect){0, 0, boxWidth, boxHeight}, texture); // Inicializa variables fixedWidth = false;