Fix double indexing for the same game

This commit is contained in:
erri120 2021-01-26 15:42:46 +01:00
parent 4a32fc1415
commit bb7e039157

View File

@ -182,7 +182,9 @@ namespace Wabbajack.Lib
{
if (UseGamePaths)
{
foreach (var ag in Settings.IncludedGames.Cons(CompilingGame.Game))
//taking the games in Settings.IncludedGames + currently compiling game so you can eg
//include the stock game files if you are compiling for a VR game (ex: Skyrim + SkyrimVR)
foreach (var ag in Settings.IncludedGames.Cons(CompilingGame.Game).Distinct())
{
try
{