Skip to content

Commit

Permalink
修复读取错误存档导致数据全0的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
LorisYounger committed Aug 25, 2023
1 parent e1bfd98 commit ef3b92b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions VPet-Simulator.Windows/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@ public bool GameLoad(ILine line)
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"))
{
Expand Down

0 comments on commit ef3b92b

Please sign in to comment.