Fix crash at selecting non-profile directory

This commit is contained in:
trawzified 2019-09-25 18:30:09 +02:00
parent 37c6af9a6a
commit 1a661bc08b

View File

@ -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();
}
}
}