Skip to content

Commit fbc7200

Browse files
committed
fix #572 crash when switching mods while playing music
1 parent 0770524 commit fbc7200

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

OpenRA.Game/Game.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,11 @@ public static void InitializeWithMods(string[] mods)
266266
var mm = mods.Where( m => Mod.AllMods.ContainsKey( m ) ).ToArray();
267267
Console.WriteLine("Loading mods: {0}",string.Join(",",mm));
268268
Settings.Game.Mods = mm;
269-
Settings.Save();
270-
271-
Sound.Initialize();
269+
Settings.Save();
270+
271+
Sound.StopMusic();
272+
Sound.StopVideo();
273+
Sound.Initialize();
272274

273275
modData = new ModData( mm );
274276
modData.LoadInitialAssets();

0 commit comments

Comments
 (0)