Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercoms committed Sep 4, 2020
1 parent 75f12e6 commit ae1e25d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions engine/audio/private/snd_dma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6274,14 +6274,14 @@ void S_Update_New()
{
ch = list.GetChannel(i);

Assert(ch->sfx);
Assert(ch->activeIndex > 0);

if (!ch->sfx || !ch->activeIndex)
{
continue;
}

Assert(ch->sfx);
Assert(ch->activeIndex > 0);

SND_Spatialize(ch); // respatialize channel

if (ch->sfx->pSource && ch->sfx->pSource->IsVoiceSource())
Expand Down
2 changes: 1 addition & 1 deletion engine/audio/private/snd_mix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ void S_FreeChannel(channel_t *ch)

ch->flags.isSentence = false;
// Msg("End sound %s\n", ch->sfx->getname() );

delete ch->pMixer;
ch->pMixer = NULL;
ch->sfx = NULL;
Expand Down

0 comments on commit ae1e25d

Please sign in to comment.