mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-19 21:33:06 +00:00
Merge pull request #479 from FunkinCrew/bugfix/no-save-data
Fix bad initial save data when no save data present
This commit is contained in:
commit
54496c400b
|
@ -693,7 +693,7 @@ class Save
|
||||||
trace("[SAVE] Checking for legacy save data...");
|
trace("[SAVE] Checking for legacy save data...");
|
||||||
var legacySave:FlxSave = new FlxSave();
|
var legacySave:FlxSave = new FlxSave();
|
||||||
legacySave.bind(SAVE_NAME_LEGACY, SAVE_PATH_LEGACY);
|
legacySave.bind(SAVE_NAME_LEGACY, SAVE_PATH_LEGACY);
|
||||||
if (legacySave?.data == null)
|
if (legacySave.isEmpty())
|
||||||
{
|
{
|
||||||
trace("[SAVE] No legacy save data found.");
|
trace("[SAVE] No legacy save data found.");
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue