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"); } }