1
0
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:
Dydzio 2019-04-21 21:09:14 +02:00 committed by Alexander Shishkin
parent bd11e87f6a
commit f7262730b1

View File

@ -61,11 +61,10 @@ void CAudioBase::init()
void CAudioBase::release()
{
if (initialized)
{
if(!(CCS->soundh->initialized && CCS->musich->initialized))
Mix_CloseAudio();
initialized = false;
}
initialized = false;
}
void CAudioBase::setVolume(ui32 percent)