fix: solve crash when deleting save data

This commit is contained in:
Hyper_
2025-12-09 02:52:15 -05:00
committed by Hundrec
parent eeba677da9
commit 00a1a7d1e2
+1 -1
View File
@@ -67,7 +67,7 @@ class Save implements ConsoleClass
@:nullSafety(Off)
public function new(?data:RawSaveData)
{
this.data = data ?? Save.getDefaultData();
this.data = data ??= Save.getDefaultData();
// Build macro will inject SaveProperty initialization here automatically
// Make sure the verison number is up to date before we flush.