# HG changeset patch # User Adam Kaminski # Date 1626050015 14400 # Sun Jul 11 20:33:35 2021 -0400 # Node ID 1eca6782e0e61e3cc6b99dea30630e15b2746771 # Parent 3b01470f44fdc2fbdb7428222f8c98f4febdf099 Fixed S_StopAllSoundsFromActor not stopping all of an actor's sound channels properly. diff -r 3b01470f44fd -r 1eca6782e0e6 src/s_sound.cpp --- a/src/s_sound.cpp Sun Jul 11 16:09:33 2021 -0400 +++ b/src/s_sound.cpp Sun Jul 11 20:33:35 2021 -0400 @@ -1668,12 +1668,16 @@ if ( NETWORK_GetState( ) == NETSTATE_SERVER ) return; - for (FSoundChan *chan = Channels; chan != NULL; chan = chan->NextChan) + FSoundChan *chan = Channels; + while (chan != NULL) { + FSoundChan *next = chan->NextChan; if ( chan->Actor == ent ) { S_StopChannel(chan); } + + chan = next; } }