From 4ed08e887b50f66668edd08ad7a8d906fdfc05cf Mon Sep 17 00:00:00 2001 From: Matt Atlas Date: Tue, 25 Jul 2023 20:35:07 +0200 Subject: [PATCH] a --- .../client/preference_setup/general/07_psionics.dm | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/code/modules/client/preference_setup/general/07_psionics.dm b/code/modules/client/preference_setup/general/07_psionics.dm index 2255010ad7f..ae03a7905ef 100644 --- a/code/modules/client/preference_setup/general/07_psionics.dm +++ b/code/modules/client/preference_setup/general/07_psionics.dm @@ -49,13 +49,12 @@ ) /datum/category_item/player_setup_item/general/psionics/load_special(savefile/S) - if(istext(pref.psionics)) - var/before = pref.psionics - try - pref.psionics = json_decode(pref.psionics) - catch (var/exception/e) - log_debug("PSIONICS: Caught [e]. Initial value: [before]") - pref.psionics = list() + var/before = pref.psionics + try + pref.psionics = json_decode(pref.psionics) + catch (var/exception/e) + log_debug("PSIONICS: Caught [e]. Initial value: [before]") + pref.psionics = list() /datum/category_item/player_setup_item/general/psionics/sanitize_character(var/sql_load = 0) var/datum/species/mob_species = all_species[pref.species]