mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-12-09 13:39:12 +00:00
fix: solve crash when deleting save data
This commit is contained in:
parent
758f712eb5
commit
6c81a9ff0a
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue