Fix a crash if an order generator is active when a game ends.

This commit is contained in:
Paul Chote
2016-01-15 21:13:22 +00:00
parent 8ebee425ab
commit 99ba155a16

View File

@@ -70,7 +70,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var optionsButton = playerRoot.GetOrNull<MenuButtonWidget>("OPTIONS_BUTTON");
if (optionsButton != null)
optionsButton.OnClick();
Sync.CheckSyncUnchanged(world, optionsButton.OnClick);
};
}
}