From 172a256c892c000bcaf1b16a17e9e8e315dc51ab Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 15 Aug 2010 14:29:12 +0000 Subject: [PATCH] Properly initialise SDL in the input system's constructor. --- src/sdlinput.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sdlinput.cpp b/src/sdlinput.cpp index 4339d121..00c82d36 100644 --- a/src/sdlinput.cpp +++ b/src/sdlinput.cpp @@ -29,8 +29,9 @@ private: SdlInput::SdlInput(Game *game) { - data = new SdlInputData(); + SDL_Init(SDL_INIT_TIMER); + data = new SdlInputData(); data->game = game; }