1
0
Fork 0
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:
Hyper_ 2025-12-04 01:21:24 -03:00
parent 758f712eb5
commit 6c81a9ff0a

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.