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:
parent
5563f583ff
commit
87adf6002a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user