From a2cead5886c0ad7f90430e9552f73527e0dd0216 Mon Sep 17 00:00:00 2001 From: Breze <39080460+brezedc@users.noreply.github.com> Date: Wed, 13 Jan 2021 18:44:36 +0100 Subject: [PATCH] Fixed Removing lodlights --- gtautil/Program/GenLODLights.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtautil/Program/GenLODLights.cs b/gtautil/Program/GenLODLights.cs index 09560e1..3bf4dd0 100644 --- a/gtautil/Program/GenLODLights.cs +++ b/gtautil/Program/GenLODLights.cs @@ -140,8 +140,9 @@ static void HandleGenLODLightsOptions(string[] args) foreach (var item in modified) { - item.Value.Save(opts.InputDirectory + "\\" + item.Key + ".ymap"); - item.Value.Save(opts.InputDirectory + "\\modified\\" + item.Key + ".ymap"); + var descendant = item.Key.Substring(item.Key.LastIndexOf("\\")); + item.Value.Save(opts.InputDirectory + "\\" + descendant + ".ymap"); + item.Value.Save(opts.InputDirectory + "\\modified\\" + descendant + ".ymap"); } }