mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Fix possible crashes on audio shutdown
This commit is contained in:
@@ -232,8 +232,7 @@ MusicEntry::~MusicEntry()
|
||||
|
||||
if(loop == 0 && Mix_FadingMusic() != MIX_NO_FADING)
|
||||
{
|
||||
assert(0);
|
||||
logGlobal->error("Attempt to delete music while fading out!");
|
||||
logGlobal->trace("Halting playback of music file %s", currentName.getOriginalName());
|
||||
Mix_HaltMusic();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user