Merge pull request #132 from Pan7/SDL_Init

SDL_Init zero check
This commit is contained in:
Tim Angus committed 2015-07-25 11:54:12 +01:00
commit 605dfabb94
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -437,7 +437,7 @@ static void IN_InitJoystick( void )
if (!SDL_WasInit(SDL_INIT_JOYSTICK))
{
Com_DPrintf("Calling SDL_Init(SDL_INIT_JOYSTICK)...\n");
if (SDL_Init(SDL_INIT_JOYSTICK) == -1)
if (SDL_Init(SDL_INIT_JOYSTICK) != 0)
{
Com_DPrintf("SDL_Init(SDL_INIT_JOYSTICK) failed: %s\n", SDL_GetError());
return;