From 1a661bc08baa2572ca6b3da711ce2597ec4229b4 Mon Sep 17 00:00:00 2001 From: trawzified Date: Wed, 25 Sep 2019 18:30:09 +0200 Subject: [PATCH] Fix crash at selecting non-profile directory --- Wabbajack/AppState.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Wabbajack/AppState.cs b/Wabbajack/AppState.cs index 177a5c22..b6f70051 100644 --- a/Wabbajack/AppState.cs +++ b/Wabbajack/AppState.cs @@ -305,13 +305,15 @@ namespace Wabbajack if (folder != null) { var file = Path.Combine(folder, "modlist.txt"); - if (!File.Exists(file)) + if(File.Exists(file)) + { + Location = file; + ConfigureForBuild(); + } + else { Utils.Log($"No modlist.txt found at {file}"); } - - Location = file; - ConfigureForBuild(); } } }