diff options
-rw-r--r-- | src/heretic/s_sound.c | 2 | ||||
-rw-r--r-- | src/hexen/s_sound.c | 2 |
2 files changed, 2 insertions, 2 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; } diff --git a/src/hexen/s_sound.c b/src/hexen/s_sound.c index b06a8d4b..438d4679 100644 --- a/src/hexen/s_sound.c +++ b/src/hexen/s_sound.c @@ -669,7 +669,7 @@ void S_UpdateSounds(mobj_t * listener) Channel[i].sound_id = 0; } if (Channel[i].mo == NULL || Channel[i].sound_id == 0 - || Channel[i].mo == listener) + || Channel[i].mo == listener || listener == NULL) { continue; } |