From 2dcc66f03ead9bb78719d26c7a760fda89c2c18b Mon Sep 17 00:00:00 2001 From: ehofman Date: Sat, 28 Nov 2009 10:48:17 +0000 Subject: [PATCH] Small bugfix --- simgear/sound/soundmgr_openal.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/sound/soundmgr_openal.cxx b/simgear/sound/soundmgr_openal.cxx index f7199458..692c7868 100644 --- a/simgear/sound/soundmgr_openal.cxx +++ b/simgear/sound/soundmgr_openal.cxx @@ -102,7 +102,7 @@ void SGSoundMgr::init(const char *devname) { ALCdevice *device = alcOpenDevice(devname); if ( testForError(device, "Audio device not available, trying default") ) { - ALCdevice *device = alcOpenDevice(NULL); + device = alcOpenDevice(NULL); if (testForError(device, "Default Audio device not available.") ) { return; } -- 2.39.5