数据全是0存档不加载

This commit is contained in:
ZouJin 2023-08-26 23:56:10 +10:00
parent e589df4d92
commit c5fe33e1ab

View File

@ -576,7 +576,7 @@ 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
if (Core.Save.Money == 0 && Core.Save.Likability == 0 && Core.Save.Exp == 0 && Core.Save.StrengthDrink == 0 && Core.Save.StrengthFood == 0)//数据全是0,可能是bug
return false;
long hash = line.GetInt64("hash");
if (line.Remove("hash"))