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