Fix Observers crashing during win/lose the game.
This commit is contained in:
@@ -97,7 +97,7 @@ namespace OpenRA.Traits
|
|||||||
|
|
||||||
var playedSong = currentSong;
|
var playedSong = currentSong;
|
||||||
|
|
||||||
if (world.LocalPlayer.WinState == WinState.Won)
|
if (world.LocalPlayer != null && world.LocalPlayer.WinState == WinState.Won)
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(info.VictoryMusic)
|
if (!string.IsNullOrEmpty(info.VictoryMusic)
|
||||||
&& world.Map.Rules.Music.ContainsKey(info.VictoryMusic)
|
&& world.Map.Rules.Music.ContainsKey(info.VictoryMusic)
|
||||||
|
|||||||
Reference in New Issue
Block a user