mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复读取错误存档导致数据全0的错误
This commit is contained in:
parent
d6b3d87fce
commit
8cab62a81f
@ -576,6 +576,8 @@ namespace VPet_Simulator.Windows
|
|||||||
if (string.IsNullOrWhiteSpace(line.ToString()))
|
if (string.IsNullOrWhiteSpace(line.ToString()))
|
||||||
return false;
|
return false;
|
||||||
Core.Save = GameSave.Load(line);
|
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");
|
long hash = line.GetInt64("hash");
|
||||||
if (line.Remove("hash"))
|
if (line.Remove("hash"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user