summaryrefslogtreecommitdiff
path: root/src/heretic
diff options
context:
space:
mode:
Diffstat (limited to 'src/heretic')
-rw-r--r--src/heretic/s_sound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/heretic/s_sound.c b/src/heretic/s_sound.c
index 73942201..e94f17a5 100644
--- a/src/heretic/s_sound.c
+++ b/src/heretic/s_sound.c
@@ -479,7 +479,7 @@ void S_UpdateSounds(mobj_t * listener)
}
}
if (channel[i].mo == NULL || channel[i].sound_id == 0
- || channel[i].mo == listener)
+ || channel[i].mo == listener || listener == NULL)
{
continue;
}