From 440a6633ea3add97b3c89065406cb4974ca6f3b5 Mon Sep 17 00:00:00 2001 From: timothyteakettle <59849408+timothyteakettle@users.noreply.github.com> Date: Fri, 7 May 2021 00:37:33 +0100 Subject: [PATCH] Update preferences_savefile.dm --- code/modules/client/preferences_savefile.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index a59f35e111..9e7c942967 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -317,11 +317,12 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car if(S["feature_mcolor2"]) color_list[2] = S["feature_mcolor2"] if(S["feature_mcolor3"]) color_list[3] = S["feature_mcolor3"] - var/marking_list = list() + var/list/marking_list = list() for(var/part in list(ARM_LEFT, ARM_RIGHT, LEG_LEFT, LEG_RIGHT, CHEST, HEAD)) marking_list += list(list(part, old_marking_value, color_list.Copy())) message_admins("saved data of length [length(marking_list)]") S[marking_type] = safe_json_encode(marking_list) + message_admins("final json code is: [S[marking_type]]") /datum/preferences/proc/load_path(ckey,filename="preferences.sav") if(!ckey)