Fix crash when spectators are present

This commit is contained in:
Scott_NZ
2012-10-14 22:21:20 +13:00
committed by Chris Forbes
parent 1d62329969
commit e1cb4d60c4
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.RA.Missions
class Allies01Script : IHasObjectives, IWorldLoaded, ITick
{
public event ObjectivesUpdatedEventHandler OnObjectivesUpdated;
public event ObjectivesUpdatedEventHandler OnObjectivesUpdated = notify => { };
public IEnumerable<Objective> Objectives { get { return objectives.Values; } }

View File

@@ -28,7 +28,7 @@ namespace OpenRA.Mods.RA.Missions
class Allies02Script : IHasObjectives, IWorldLoaded, ITick
{
public event ObjectivesUpdatedEventHandler OnObjectivesUpdated;
public event ObjectivesUpdatedEventHandler OnObjectivesUpdated = notify => { };
public IEnumerable<Objective> Objectives { get { return objectives.Values; } }