From b9d4e77214dfabd445640be39a76e627b20c4313 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 1 Oct 2019 20:13:40 +0200 Subject: [PATCH] - eliminate a little bit of redundancy. --- src/sound/s_advsound.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/sound/s_advsound.cpp b/src/sound/s_advsound.cpp index c0bf79b09d..197434da74 100644 --- a/src/sound/s_advsound.cpp +++ b/src/sound/s_advsound.cpp @@ -948,10 +948,7 @@ static void S_ClearSoundData() unsigned int i; S_StopAllChannels(); - for (i = 0; i < S_sfx.Size(); ++i) - { - S_UnloadSound(&S_sfx[i]); - } + S_UnloadAllSounds(); S_sfx.Clear(); Ambients.Clear(); while (MusicVolumes != NULL)