From 206cfe7955683ac166201e417977e933fd98f7b3 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sat, 13 Sep 2008 05:24:52 +0000 Subject: avoid crash when game engine returns to Blender, and OpenAL sources haven't been initialized properly for some reason. --- intern/SoundSystem/openal/SND_OpenALDevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'intern') diff --git a/intern/SoundSystem/openal/SND_OpenALDevice.cpp b/intern/SoundSystem/openal/SND_OpenALDevice.cpp index 82ed1c8a808..c660e9aecba 100644 --- a/intern/SoundSystem/openal/SND_OpenALDevice.cpp +++ b/intern/SoundSystem/openal/SND_OpenALDevice.cpp @@ -294,6 +294,10 @@ SND_OpenALDevice::SND_OpenALDevice() // let openal generate its sources if (alc_error == ALC_NO_ERROR) { + int i; + + for (i=0;i