From f5af6d942506ed601c84be5b2bcbcf9c893fd712 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Mon, 3 Oct 2022 17:42:10 +0200 Subject: [PATCH] =?UTF-8?q?Peque=C3=B1o=20cambio=20en=20director.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/director.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/director.cpp b/source/director.cpp index 64ad387..dcc4fc9 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -7,6 +7,9 @@ // Constructor Director::Director(std::string path) { + section.name = SECTION_PROG_GAME; + section.subsection = 0; + // Crea el objeto que controla los ficheros de recursos asset = new Asset(path.substr(0, path.find_last_of("\\/"))); @@ -15,11 +18,6 @@ Director::Director(std::string path) { section.name = SECTION_PROG_QUIT; } - else - { - section.name = SECTION_PROG_GAME; - section.subsection = 0; - } // Inicializa variables desde el fichero de configuración loadConfig();