mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 16:45:17 -04: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)
|
catch(std::exception &e)
|
||||||
{
|
{
|
||||||
if(alIsSource(buf))
|
if(alIsSource(src))
|
||||||
alDeleteSources(1, &src);
|
alDeleteSources(1, &src);
|
||||||
if(alIsBuffer(buf))
|
if(alIsBuffer(buf))
|
||||||
alDeleteBuffers(1, &buf);
|
alDeleteBuffers(1, &buf);
|
||||||
@ -384,7 +384,7 @@ Sound* OpenAL_Output::PlaySound3D(const std::string &fname, std::auto_ptr<Sound_
|
|||||||
}
|
}
|
||||||
catch(std::exception &e)
|
catch(std::exception &e)
|
||||||
{
|
{
|
||||||
if(alIsSource(buf))
|
if(alIsSource(src))
|
||||||
alDeleteSources(1, &src);
|
alDeleteSources(1, &src);
|
||||||
if(alIsBuffer(buf))
|
if(alIsBuffer(buf))
|
||||||
alDeleteBuffers(1, &buf);
|
alDeleteBuffers(1, &buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user