Skip to content

Commit 55e18df

Browse files
WeylonSantanapandinocoder
authored andcommitted
fix: chkAllowInOverworld not saving the value properly
1 parent f79dc01 commit 55e18df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Intersect.Editor/Forms/Editors/Events/Event Commands/EventCommand_StartCommonEvent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
namespace Intersect.Editor.Forms.Editors.Events.Event_Commands;
66

7-
87
public partial class EventCommandStartCommonEvent : UserControl
98
{
10-
119
private readonly FrmEvent mEventEditor;
1210

1311
private StartCommmonEventCommand mMyCommand;
@@ -51,6 +49,7 @@ private void btnSave_Click(object sender, EventArgs e)
5149
{
5250
mMyCommand.EventId = EventBase.IdFromList(cmbEvent.SelectedIndex);
5351
mMyCommand.AllInInstance = chkAllInInstance.Checked;
52+
mMyCommand.AllowInOverworld = chkAllInInstance.Checked && chkOverworldOverride.Checked;
5453
mEventEditor.FinishCommandEdit();
5554
}
5655

@@ -65,6 +64,7 @@ private void chkAllInInstance_CheckedChanged(object sender, EventArgs e)
6564
{
6665
chkOverworldOverride.Checked = false;
6766
}
67+
6868
chkOverworldOverride.Enabled = chkAllInInstance.Checked;
6969
}
7070
}

0 commit comments

Comments
 (0)