From 666fe7120153558f235709a12cf211f0ddaa385c Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 18 Oct 2020 21:23:41 +1100 Subject: [PATCH] - SW: Repair issues with sector object sounds following a506b45369167ec85a5290ce58138ad13807dc56. * Fixes #132 --- source/sw/src/player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/sw/src/player.cpp b/source/sw/src/player.cpp index 4dc48de71..8131f6f95 100644 --- a/source/sw/src/player.cpp +++ b/source/sw/src/player.cpp @@ -2405,7 +2405,7 @@ void PlaySOsound(short sectnum, short sound_num) int i; // play idle sound - sound 1 - SectIterator it(StatDamageList[sectnum]); + SectIterator it(sectnum); while ((i = it.NextIndex()) >= 0) { if (sprite[i].statnum == STAT_SOUND_SPOT) @@ -2421,7 +2421,7 @@ void StopSOsound(short sectnum) int i; // play idle sound - sound 1 - SectIterator it(StatDamageList[sectnum]); + SectIterator it(sectnum); while ((i = it.NextIndex()) >= 0) { if (sprite[i].statnum == STAT_SOUND_SPOT)