Skip to content
Permalink
Browse files

- fixed crash on exiting from IWAD selector

  • Loading branch information...
alexey-lysiuk committed Oct 9, 2019
1 parent d3c50ea commit bfa8e2510013188cc340731d260a22b278af7b43
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/sound/s_sound.cpp
@@ -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...
S_StopAllChannels();

GSnd->UpdateSounds();
if (GSnd)
GSnd->UpdateSounds();

for (chan = FreeChannels; chan != NULL; chan = next)
{
next = chan->NextChan;
@@ -1752,7 +1754,9 @@ void S_StopAllChannels ()
S_StopChannel(chan);
chan = next;
}
GSnd->UpdateSounds();

if (GSnd)
GSnd->UpdateSounds();
}

//==========================================================================

0 comments on commit bfa8e25

Please sign in to comment.
You can’t perform that action at this time.