From 67741b756163629a34a3959b11dfb619f5181888 Mon Sep 17 00:00:00 2001 From: Timothy Teakettle <59849408+timothyteakettle@users.noreply.github.com> Date: Sun, 27 Dec 2020 20:09:32 +0000 Subject: [PATCH] Update preferences_savefile.dm --- code/modules/client/preferences_savefile.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index 119acef72e..4d2af47d90 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -738,7 +738,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car //gear loadout loadout_data = safe_json_decode(S["loadout"]) - unlockable_loadout_data = S["unlockable_loadout"] + unlockable_loadout_data = safe_json_decode(S["unlockable_loadout"]) //try to fix any outdated data if necessary //preference updating will handle saving the updated data for us. @@ -1078,9 +1078,9 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car S["loadout"] << safe_json_encode(list()) if(length(unlockable_loadout_data)) - S["unlockable_loadout"] << unlockable_loadout_data + S["unlockable_loadout"] << safe_json_encode(unlockable_loadout_data) else - S["unlockable_loadout"] << list() + S["unlockable_loadout"] << safe_json_encode(list()) cit_character_pref_save(S)