Fix a crash if an order generator is active when a game ends.
This commit is contained in:
@@ -70,7 +70,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
|
|
||||||
var optionsButton = playerRoot.GetOrNull<MenuButtonWidget>("OPTIONS_BUTTON");
|
var optionsButton = playerRoot.GetOrNull<MenuButtonWidget>("OPTIONS_BUTTON");
|
||||||
if (optionsButton != null)
|
if (optionsButton != null)
|
||||||
optionsButton.OnClick();
|
Sync.CheckSyncUnchanged(world, optionsButton.OnClick);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user