1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-02 19:53:15 +00:00
This commit is contained in:
Cameron Taylor 2024-04-30 20:52:02 -04:00
parent 06ce5eb44b
commit 8a8872680a

View file

@ -50,11 +50,10 @@ class Save
/**
* Constructing a new Save will load the default values.
*/
public function new(data:RawSaveData)
public function new(?data:RawSaveData)
{
this.data = data;
if (this.data == null) data = Save.getDefault();
if (data == null) this.data = Save.getDefault();
else this.data = data;
}
public static function getDefault():RawSaveData