From bb7e0391579b9fe032d23ec318fcb08127c8b7a5 Mon Sep 17 00:00:00 2001 From: erri120 Date: Tue, 26 Jan 2021 15:42:46 +0100 Subject: [PATCH] Fix double indexing for the same game --- Wabbajack.Lib/ACompiler.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Wabbajack.Lib/ACompiler.cs b/Wabbajack.Lib/ACompiler.cs index 0fcd8a32..008e2423 100644 --- a/Wabbajack.Lib/ACompiler.cs +++ b/Wabbajack.Lib/ACompiler.cs @@ -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 {