mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-13 22:42:07 +00:00
- listenactor can be null.
This commit is contained in:
parent
73fd072d10
commit
457969262d
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue