修复重开导致的空数据

This commit is contained in:
ZouJin 2023-08-27 04:00:33 +10:00
parent eaf0001929
commit ed3d95bda5

View File

@ -1187,7 +1187,7 @@ namespace VPet_Simulator.Windows
{
if (MessageBoxX.Show("是否重置游戏数据重新开始?\n该操作无法撤回".Translate(), "重新开始".Translate(), MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{
mw.Core.Save = new GameSave();
mw.Core.Save = new GameSave(mw.Core.Save.Name);
mw.Set.Statistics = new Statistics();
CBSaveReLoad.IsEnabled = false;
BtnSaveReload.IsEnabled = false;