1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

Fix a copy-paste typo in the openal output

This commit is contained in:
Chris Robinson 2012-03-17 09:57:39 -07:00
parent 5563f583ff
commit 87adf6002a

View File

@ -336,7 +336,7 @@ Sound* OpenAL_Output::PlaySound(const std::string &fname, std::auto_ptr<Sound_De
}
catch(std::exception &e)
{
if(alIsSource(buf))
if(alIsSource(src))
alDeleteSources(1, &src);
if(alIsBuffer(buf))
alDeleteBuffers(1, &buf);
@ -384,7 +384,7 @@ Sound* OpenAL_Output::PlaySound3D(const std::string &fname, std::auto_ptr<Sound_
}
catch(std::exception &e)
{
if(alIsSource(buf))
if(alIsSource(src))
alDeleteSources(1, &src);
if(alIsBuffer(buf))
alDeleteBuffers(1, &buf);