]> git.mxchange.org Git - simgear.git/commitdiff
Small bugfix
authorehofman <ehofman>
Sat, 28 Nov 2009 10:48:17 +0000 (10:48 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 29 Nov 2009 12:04:38 +0000 (13:04 +0100)
simgear/sound/soundmgr_openal.cxx

index f7199458fca48a2a430e5ecc1203570fd2aede77..692c78688c8f9a92d626ae484c21858644e0d15e 100644 (file)
@@ -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;
         }