From a59173ac31f128cbd919ba6932c84bcdec7afe23 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 13 Dec 2021 13:17:25 +0100 Subject: [PATCH] - SW: fixed DeleteNoSoundOwner still checking for sprites as sound origins. --- source/games/sw/src/sounds.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/games/sw/src/sounds.cpp b/source/games/sw/src/sounds.cpp index 8b7e94f3a..f9399ed01 100644 --- a/source/games/sw/src/sounds.cpp +++ b/source/games/sw/src/sounds.cpp @@ -724,11 +724,10 @@ void COVER_SetReverb(int amt) void DeleteNoSoundOwner(DSWActor* actor) { if (!soundEngine) return; - SPRITEp sp = &actor->s(); soundEngine->EnumerateChannels([=](FSoundChan* chan) { - if (chan->Source == sp && chan->ChanFlags & CHANF_LOOP) + if (chan->Source == actor && chan->ChanFlags & CHANF_LOOP) { soundEngine->StopChannel(chan); }