mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Fixes a possible runtime in future (#93097)
## About The Pull Request If someones delete a keybind this runtime will appear. <img width="689" height="172" alt="image" src="https://github.com/user-attachments/assets/1fd9c6c3-00a7-4890-89ba-002943a06a32" /> This pr preverents it ## Why It's Good For The Game Fixes are good, bugs are bad (except hk) ## Changelog Not player faced
This commit is contained in:
@@ -242,7 +242,6 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
update_preferences(data_validity_integer, savefile)
|
||||
|
||||
check_keybindings() // this apparently fails every time and overwrites any unloaded prefs with the default values, so don't load anything after this line or it won't actually save
|
||||
key_bindings_by_key = get_key_bindings_by_key(key_bindings)
|
||||
|
||||
//Sanitize
|
||||
lastchangelog = sanitize_text(lastchangelog, initial(lastchangelog))
|
||||
@@ -252,6 +251,8 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
key_bindings = sanitize_keybindings(key_bindings)
|
||||
favorite_outfits = SANITIZE_LIST(favorite_outfits)
|
||||
|
||||
key_bindings_by_key = get_key_bindings_by_key(key_bindings)
|
||||
|
||||
if(SHOULD_UPDATE_DATA(data_validity_integer)) //save the updated version
|
||||
var/old_default_slot = default_slot
|
||||
var/old_max_save_slots = max_save_slots
|
||||
|
||||
Reference in New Issue
Block a user