mirror of
https://github.com/OpenMW/openmw.git
synced 2026-01-04 13:43:07 +00:00
Fix a copy-paste typo in the openal output
This commit is contained in:
parent
5563f583ff
commit
87adf6002a
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue