Eliminat el punter a "section"
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#include "define_buttons.h"
|
||||
#include "param.h"
|
||||
#include "options.h"
|
||||
#include "section.h"
|
||||
|
||||
// Constructor
|
||||
DefineButtons::DefineButtons(Input *input, Text *text, section_t *section)
|
||||
DefineButtons::DefineButtons(Input *input, Text *text)
|
||||
{
|
||||
// Copia punteros a los objetos
|
||||
this->input = input;
|
||||
this->text = text;
|
||||
this->section = section;
|
||||
|
||||
// Inicializa variables
|
||||
enabled = false;
|
||||
@@ -112,7 +112,8 @@ void DefineButtons::checkInput()
|
||||
// Evento de salida de la aplicación
|
||||
if (event.type == SDL_QUIT)
|
||||
{
|
||||
section->name = SECTION_PROG_QUIT;
|
||||
section::name = section::NAME_QUIT;
|
||||
section::options = section::OPTIONS_QUIT_NORMAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user