diff --git a/CreamInstaller/Forms/SelectForm.cs b/CreamInstaller/Forms/SelectForm.cs index 2b2b9b2..9594d44 100644 --- a/CreamInstaller/Forms/SelectForm.cs +++ b/CreamInstaller/Forms/SelectForm.cs @@ -325,14 +325,11 @@ internal partial class SelectForm : CustomForm selection.RootDirectory = directory; selection.DllDirectories = dllDirectories; selection.IsEpic = true; - foreach (KeyValuePair pair in entitlements) + foreach (KeyValuePair pair in entitlements.Where(p => p.Value.name == selection.Name)) { - if (pair.Value.name == selection.Name) - { - selection.ProductUrl = "https://www.epicgames.com/store/product/" + pair.Value.product; - selection.IconUrl = pair.Value.icon; - selection.Publisher = pair.Value.developer; - } + selection.ProductUrl = "https://www.epicgames.com/store/product/" + pair.Value.product; + selection.IconUrl = pair.Value.icon; + selection.Publisher = pair.Value.developer; } if (Program.Canceled) return;