mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-02 01:42:12 +00:00
SDL_Init zero check
This commit is contained in:
parent
36f65fd7c5
commit
2a38bca931
3 changed files with 3 additions and 3 deletions
|
@ -156,7 +156,7 @@ qboolean SNDDMA_Init(void)
|
|||
|
||||
if (!SDL_WasInit(SDL_INIT_AUDIO))
|
||||
{
|
||||
if (SDL_Init(SDL_INIT_AUDIO) == -1)
|
||||
if (SDL_Init(SDL_INIT_AUDIO) != 0)
|
||||
{
|
||||
Com_Printf( "FAILED (%s)\n", SDL_GetError( ) );
|
||||
return qfalse;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue