mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 04:36:44 +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