- SW: Repair issues with sector object sounds following a506b45369.

* Fixes #132
This commit is contained in:
Mitchell Richters 2020-10-18 21:23:41 +11:00
parent a8eaf3575f
commit 666fe71201
1 changed files with 2 additions and 2 deletions

View File

@ -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)