From 2be0e7c4bd4171b0033a83a19d89382180ae995a Mon Sep 17 00:00:00 2001 From: Miepee Date: Fri, 3 Mar 2023 22:11:30 +0100 Subject: [PATCH] Fix launcher crashing in certain cases when updating mods --- AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs index 415e000..98e5ce3 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs @@ -532,7 +532,7 @@ public partial class MainForm : Form /// Gets called when user selects a different item from and changes accordingly. private void ProfileDropDownSelectedIndexChanged(object sender, EventArgs e) { - if ((profileDropDown.SelectedIndex == -1) && (!profileDropDown.DataStore.Any())) return; + if ((profileDropDown.SelectedIndex == -1) || (!profileDropDown.DataStore.Any())) return; profileIndex = profileDropDown.SelectedIndex; log.Debug("profileDropDown.SelectedIndex has been changed to " + profileIndex + ".");