diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index f4921e1498..a962476d3e 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -138,7 +138,9 @@ namespace OpenRA { ++RenderFrame; viewport.DrawRegions(worldRenderer, new DefaultInputHandler(orderManager.world)); - Sound.SetListenerPosition(worldRenderer.Position(viewport.CenterLocation.ToInt2())); + + if (worldRenderer != null) + Sound.SetListenerPosition(worldRenderer.Position(viewport.CenterLocation.ToInt2())); } PerfHistory.items["render"].Tick();