Merge pull request #1283 from erri120/double-game-files-indexing

Fix double indexing for the same game
This commit is contained in:
Timothy Baldridge 2021-01-28 20:44:43 -07:00 committed by GitHub
commit 7ea7b8ac3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
{