Merge pull request #8779 from GraionDilach/fix-gameover

Fix Observers/players using the nofogcheat crashing during win/lose the game.
This commit is contained in:
Paul Chote
2015-07-25 14:47:28 +01:00

View File

@@ -97,7 +97,7 @@ namespace OpenRA.Traits
var playedSong = currentSong;
if (world.LocalPlayer.WinState == WinState.Won)
if (world.LocalPlayer != null && world.LocalPlayer.WinState == WinState.Won)
{
if (!string.IsNullOrEmpty(info.VictoryMusic)
&& world.Map.Rules.Music.ContainsKey(info.VictoryMusic)