From 3d7013e12bfc16352c65dba1ba3a97dd46388cd9 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Sun, 22 Apr 2012 20:28:41 +0000 Subject: [PATCH] Fix: Cvar_Get needs a string as default value, not an int.. --- src/client/sound/snd_dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/sound/snd_dma.c b/src/client/sound/snd_dma.c index 4266d9fd..388bfdc2 100644 --- a/src/client/sound/snd_dma.c +++ b/src/client/sound/snd_dma.c @@ -147,12 +147,12 @@ S_Init ( void ) Cmd_AddCommand( "ogg_shutdown", OGG_Shutdown ); #if ! USE_OPENAL - cv = Cvar_Get( "s_openal", 0, CVAR_ARCHIVE); + cv = Cvar_Get( "s_openal", "0", CVAR_ARCHIVE); if( cv->value ) { Com_Printf("Warning: Ignoring s_openal, as this binary has no OpenAL support!"); } #else - cv = Cvar_Get( "s_openal", 1, CVAR_ARCHIVE); + cv = Cvar_Get( "s_openal", "1", CVAR_ARCHIVE); if( cv->value && AL_Init() ) { sound_started = SS_OAL; }