Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Atlas committed Jul 25, 2023
1 parent 76713de commit 4ed08e8
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions code/modules/client/preference_setup/general/07_psionics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 4ed08e8

Please sign in to comment.