Explorar el Código

Properly initialise SDL in the input system's constructor.

legacy
Sam Hocevar sam hace 16 años
padre
commit
172a256c89
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      src/sdlinput.cpp

+ 2
- 1
src/sdlinput.cpp Ver fichero

@@ -29,8 +29,9 @@ private:


SdlInput::SdlInput(Game *game) SdlInput::SdlInput(Game *game)
{ {
data = new SdlInputData();
SDL_Init(SDL_INIT_TIMER);


data = new SdlInputData();
data->game = game; data->game = game;
} }




Cargando…
Cancelar
Guardar