diff --git a/Content.Client/Audio/ContentAudioSystem.CP14AmbientLoop.cs b/Content.Client/Audio/ContentAudioSystem.CP14AmbientLoop.cs index e98aa10d6e..bf2d7f00e4 100644 --- a/Content.Client/Audio/ContentAudioSystem.CP14AmbientLoop.cs +++ b/Content.Client/Audio/ContentAudioSystem.CP14AmbientLoop.cs @@ -80,6 +80,10 @@ public sealed partial class ContentAudioSystem .WithLoop(true) .WithVolume(proto.Sound.Params.Volume + _volumeSlider) .WithPlayOffset(_random.NextFloat(0f, 100f))); + + if (newLoop is null) + return; + _loopStreams.Add(proto, newLoop.Value.Entity); FadeIn(newLoop.Value.Entity, newLoop.Value.Component, AmbientLoopFadeInTime);