From 6b4da24e9dac9c218739f880dbf345ce97022aa5 Mon Sep 17 00:00:00 2001 From: EggLink <146359339+EggLink@users.noreply.github.com> Date: Thu, 1 May 2025 19:58:51 +0800 Subject: [PATCH] fix: database upgrade cannot process single path avatar --- Program/Program/EntryPoint.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Program/Program/EntryPoint.cs b/Program/Program/EntryPoint.cs index 257ac326..0779fb82 100644 --- a/Program/Program/EntryPoint.cs +++ b/Program/Program/EntryPoint.cs @@ -309,8 +309,8 @@ public class EntryPoint foreach (var info in avatar.PathInfoes) { if (info.Value.PathId == 0) - info.Value.PathId = info.Key; - formalAvatar.PathInfos.Add(info.Key, new PathInfo(info.Value.PathId) + info.Value.PathId = avatar.AvatarId; + formalAvatar.PathInfos.Add(info.Value.PathId, new PathInfo(info.Value.PathId) { PathId = info.Value.PathId, EquipId = info.Value.EquipId, @@ -379,4 +379,4 @@ public class EntryPoint DanhengConnection.LogMap.TryAdd(value, name); } } -} \ No newline at end of file +}