Merge pull request #2857 from Mailaender/fix-game-start-sound-nullreference-exception

Fix NullReferenceException for spectator mode
This commit is contained in:
Matthias Mailänder
2013-03-27 00:14:39 -07:00

View File

@@ -222,7 +222,7 @@ namespace OpenRA
worldRenderer.RefreshPalette(); worldRenderer.RefreshPalette();
if (!isShellmap) if (!isShellmap)
Sound.PlayNotification(null, "Speech", "StartGame", orderManager.world.LocalPlayer.Country.Race); Sound.PlayNotification(null, "Speech", "StartGame", null);
} }
public static bool IsHost public static bool IsHost