fix stale data issue in copying slots (#19422)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Aura Dusklight
2026-05-03 18:48:30 -04:00
committed by GitHub
co-authored by Cameron Lennox
parent 29dfdee356
commit c8048edef9
@@ -340,6 +340,9 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
nif_path = nif_durability = nif_savedata = null //VOREStation Add - Don't copy NIF
savefile.set_entry("default_slot", slot)
// Clear stale data before overwriting.
savefile.remove_entry("character[slot]")
return TRUE
/datum/preferences/proc/sanitize_preferences()