From 934a45d110904289e4a9bd9ee3c6c20ac7145094 Mon Sep 17 00:00:00 2001 From: ZeeWanderer Date: Wed, 7 Aug 2024 00:48:00 +0300 Subject: [PATCH] fix compilation --- .../Installers/SmartUEInstaller.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Games/NexusMods.Games.UnrealEngine/Installers/SmartUEInstaller.cs b/src/Games/NexusMods.Games.UnrealEngine/Installers/SmartUEInstaller.cs index 398be30a9e..2a2e448a73 100644 --- a/src/Games/NexusMods.Games.UnrealEngine/Installers/SmartUEInstaller.cs +++ b/src/Games/NexusMods.Games.UnrealEngine/Installers/SmartUEInstaller.cs @@ -20,6 +20,7 @@ using NexusMods.Abstractions.Library.Models; using System.Xml.Linq; using NexusMods.Extensions.BCL; +using System.Linq; namespace NexusMods.Games.UnrealEngine.Installers; @@ -190,7 +191,7 @@ public override async ValueTask ExecuteAsync( } var foundGameFilesGroup = LoadoutGameFilesGroup - .FindByGameMetadata(loadout.Db, loadout.Installation.GameMetadataId) + .FindByGameMetadata(loadout.Db, loadout.Installation.GameInstallMetadataId) .TryGetFirst(x => x.AsLoadoutItemGroup().AsLoadoutItem().LoadoutId == loadout.LoadoutId, out var gameFilesGroup); if (!foundGameFilesGroup) @@ -200,7 +201,7 @@ public override async ValueTask ExecuteAsync( } var gameFilesLookup = gameFilesGroup.AsLoadoutItemGroup().Children - .Select(gameFile => gameFile.TryGetAsLoadoutItemWithTargetPath(out var targeted) ? targeted.TargetPath : default) + .Select(gameFile => gameFile.TryGetAsLoadoutItemWithTargetPath(out var targeted) ? (GamePath)targeted.TargetPath : default) .Where(x => x != default) .ToLookup(x => x.FileName);