Fix Observers crashing during win/lose the game.

This commit is contained in:
Zimmermann Gyula
2015-07-25 14:04:12 +02:00
parent 655f4d30ff
commit 8f43ae96ae

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)