Fix crash when spectators are present
This commit is contained in:
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.RA.Missions
|
|||||||
|
|
||||||
class Allies01Script : IHasObjectives, IWorldLoaded, ITick
|
class Allies01Script : IHasObjectives, IWorldLoaded, ITick
|
||||||
{
|
{
|
||||||
public event ObjectivesUpdatedEventHandler OnObjectivesUpdated;
|
public event ObjectivesUpdatedEventHandler OnObjectivesUpdated = notify => { };
|
||||||
|
|
||||||
public IEnumerable<Objective> Objectives { get { return objectives.Values; } }
|
public IEnumerable<Objective> Objectives { get { return objectives.Values; } }
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace OpenRA.Mods.RA.Missions
|
|||||||
|
|
||||||
class Allies02Script : IHasObjectives, IWorldLoaded, ITick
|
class Allies02Script : IHasObjectives, IWorldLoaded, ITick
|
||||||
{
|
{
|
||||||
public event ObjectivesUpdatedEventHandler OnObjectivesUpdated;
|
public event ObjectivesUpdatedEventHandler OnObjectivesUpdated = notify => { };
|
||||||
|
|
||||||
public IEnumerable<Objective> Objectives { get { return objectives.Values; } }
|
public IEnumerable<Objective> Objectives { get { return objectives.Values; } }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user