mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-03-01 23:31:16 +00:00
- fixed crash on exiting from IWAD selector
https://forum.zdoom.org/viewtopic.php?t=66073
This commit is contained in:
parent
d3c50eadaa
commit
bfa8e25100
1 changed files with 6 additions and 2 deletions
|
@ -352,7 +352,9 @@ void S_Shutdown ()
|
||||||
mus_playing.LastSong = ""; // If this isn't reset here, the song would attempt resume at the most inpopportune time...
|
mus_playing.LastSong = ""; // If this isn't reset here, the song would attempt resume at the most inpopportune time...
|
||||||
S_StopAllChannels();
|
S_StopAllChannels();
|
||||||
|
|
||||||
GSnd->UpdateSounds();
|
if (GSnd)
|
||||||
|
GSnd->UpdateSounds();
|
||||||
|
|
||||||
for (chan = FreeChannels; chan != NULL; chan = next)
|
for (chan = FreeChannels; chan != NULL; chan = next)
|
||||||
{
|
{
|
||||||
next = chan->NextChan;
|
next = chan->NextChan;
|
||||||
|
@ -1752,7 +1754,9 @@ void S_StopAllChannels ()
|
||||||
S_StopChannel(chan);
|
S_StopChannel(chan);
|
||||||
chan = next;
|
chan = next;
|
||||||
}
|
}
|
||||||
GSnd->UpdateSounds();
|
|
||||||
|
if (GSnd)
|
||||||
|
GSnd->UpdateSounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
Loading…
Reference in a new issue