mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-22 23:57:50 -05:00
Fix bad initial save data when no save data present
If no save data was present, the game would check for legacy save data in the ninjamuffin99 path to migrate over. This code was incorrectly checking `FlxSave.data == null` to determine if legacy data was present. This caused an empty legacy save being migrated over, resulting in a `volume` of 0 for any new player of the game.
This commit is contained in:
parent
90f53a78c1
commit
97884021c0
1 changed files with 1 additions and 1 deletions
|
@ -693,7 +693,7 @@ class Save
|
|||
trace("[SAVE] Checking for legacy save data...");
|
||||
var legacySave:FlxSave = new FlxSave();
|
||||
legacySave.bind(SAVE_NAME_LEGACY, SAVE_PATH_LEGACY);
|
||||
if (legacySave?.data == null)
|
||||
if (legacySave.isEmpty())
|
||||
{
|
||||
trace("[SAVE] No legacy save data found.");
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue