Skip to content

Commit

Permalink
Savefile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-023 committed Sep 16, 2024
1 parent 9a07a27 commit bca82cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/modules/client/preferences_savefile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,12 @@
backbag = sanitize_integer(backbag, 1, length(GLOB.backbaglist), initial(backbag))
preferred_armor = sanitize_inlist(preferred_armor, GLOB.armor_style_list, "Random")
//b_type = sanitize_text(b_type, initial(b_type))
var/old_pref_armor
S["preferred_armor"] >> old_pref_armor

if(!old_pref_armor in GLOB.armor_style_list)

Check warning on line 663 in code/modules/client/preferences_savefile.dm

View workflow job for this annotation

GitHub Actions / Run Linters

ambiguous `!` on left side of an `in`
preferred_armor = "Random"
S["preferred_armor"] << preferred_armor

platoon_name = platoon_name ? sanitize_text(platoon_name, initial(platoon_name)) : "Sun Riders"
dropship_camo = sanitize_inlist(dropship_camo, GLOB.dropship_camos, initial(dropship_camo))
Expand Down

0 comments on commit bca82cd

Please sign in to comment.