mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Defer SDL mixer free on 1st handler release (#578)
This commit is contained in:
parent
bd11e87f6a
commit
f7262730b1
@ -61,11 +61,10 @@ void CAudioBase::init()
|
|||||||
|
|
||||||
void CAudioBase::release()
|
void CAudioBase::release()
|
||||||
{
|
{
|
||||||
if (initialized)
|
if(!(CCS->soundh->initialized && CCS->musich->initialized))
|
||||||
{
|
|
||||||
Mix_CloseAudio();
|
Mix_CloseAudio();
|
||||||
initialized = false;
|
|
||||||
}
|
initialized = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CAudioBase::setVolume(ui32 percent)
|
void CAudioBase::setVolume(ui32 percent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user