- listenactor can be null.

This commit is contained in:
Christoph Oelckers 2019-01-08 12:33:14 +01:00
parent 73fd072d10
commit 457969262d

View file

@ -2187,7 +2187,7 @@ void S_UpdateSounds (AActor *listenactor)
GSnd->UpdateListener(&listener);
GSnd->UpdateSounds();
if (listenactor->Level->time >= RestartEvictionsAt)
if (listenactor && listenactor->Level->time >= RestartEvictionsAt)
{
RestartEvictionsAt = 0;
S_RestoreEvictedChannels();