Pequeño cambio en director.cpp

This commit is contained in:
2022-10-03 17:42:10 +02:00
parent 0c35ae3b72
commit f5af6d9425

View File

@@ -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();