diff --git a/OpenRA.Game/Widgets/CheckboxWidget.cs b/OpenRA.Game/Widgets/CheckboxWidget.cs index 5ee5e27cb1..0f893af25e 100644 --- a/OpenRA.Game/Widgets/CheckboxWidget.cs +++ b/OpenRA.Game/Widgets/CheckboxWidget.cs @@ -59,5 +59,16 @@ namespace OpenRA.Widgets base.Draw(world); } + + public CheckboxWidget() : base() { } + + public CheckboxWidget(Widget other) + : base(other) + { + Text = (other as CheckboxWidget).Text; + Checked = (other as CheckboxWidget).Checked; + } + + public override Widget Clone() { return new CheckboxWidget(this); } } } \ No newline at end of file