diff --git a/code/modules/client/preferences_save_migration.dm b/code/modules/client/preferences_save_migration.dm index 50c1cf85ea5..70b6c9bdcf8 100644 --- a/code/modules/client/preferences_save_migration.dm +++ b/code/modules/client/preferences_save_migration.dm @@ -54,8 +54,8 @@ for (var/slot in character_slots) load_character(slot) - if (!skills || !skills.len) - ZeroSkills(1) +// if (!skills || !skills.len) +// ZeroSkills(1) if (!insert_character_sql(C)) log_debug("Character insert error during migration. Client: [C.ckey], character slot: [slot].") diff --git a/code/modules/client/preferences_sql.dm b/code/modules/client/preferences_sql.dm index 920fd744807..dfddb7e6af7 100644 --- a/code/modules/client/preferences_sql.dm +++ b/code/modules/client/preferences_sql.dm @@ -283,6 +283,11 @@ // Miscellaneous disabilities = text2num(character_query.item[48]) skills = params2list(character_query.item[49]) + + for (var/skill in skills) + if (skills[skill]) + skills[skill] = text2num(skills[skill]) + skill_specialization = character_query.item[50] home_system = character_query.item[51] citizenship = character_query.item[52] diff --git a/html/changelogs/skull132-fixes-366.yml b/html/changelogs/skull132-fixes-366.yml new file mode 100644 index 00000000000..b5e9b9ff10d --- /dev/null +++ b/html/changelogs/skull132-fixes-366.yml @@ -0,0 +1,13 @@ +author: Skull132 + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - bugfix: "Skills are now properly loaded from SQL." + - bugfix: "Skills are no longer nuked whenever importing characters onto SQL."