修复读取错误存档导致数据全0的错误

This commit is contained in:
ZouJin 2023-08-26 08:34:31 +10:00
parent d6b3d87fce
commit 8cab62a81f

View File

@ -576,6 +576,8 @@ namespace VPet_Simulator.Windows
if (string.IsNullOrWhiteSpace(line.ToString()))
return false;
Core.Save = GameSave.Load(line);
if (Core.Save.Money == 0 && Core.Save.Level == 0 && Core.Save.Likability == 0)//数据全是0,可能是bug
return false;
long hash = line.GetInt64("hash");
if (line.Remove("hash"))
{