diff --git a/OpenRA.Mods.Common/Traits/Sound/AmbientSound.cs b/OpenRA.Mods.Common/Traits/Sound/AmbientSound.cs index 0f1574939f..a3ceafa840 100644 --- a/OpenRA.Mods.Common/Traits/Sound/AmbientSound.cs +++ b/OpenRA.Mods.Common/Traits/Sound/AmbientSound.cs @@ -52,13 +52,16 @@ namespace OpenRA.Mods.Common.Traits.Sound currentSounds.RemoveWhere(s => s == null || s.Complete); - var pos = self.CenterPosition; - if (pos != cachedPosition) + if (self.OccupiesSpace != null) { - foreach (var s in currentSounds) - s.SetPosition(pos); + var pos = self.CenterPosition; + if (pos != cachedPosition) + { + foreach (var s in currentSounds) + s.SetPosition(pos); - cachedPosition = pos; + cachedPosition = pos; + } } if (delay < 0)