Browse Source

Properly initialise SDL in the input system's constructor.

legacy
Sam Hocevar sam 15 years ago
parent
commit
172a256c89
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/sdlinput.cpp

+ 2
- 1
src/sdlinput.cpp View File

@@ -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;
} }




Loading…
Cancel
Save