From 12f3f9781ace2d41bf6b3774ba8bd907bdb0bd27 Mon Sep 17 00:00:00 2001 From: Darius <5933805+LeDrascol@users.noreply.github.com> Date: Sat, 18 Feb 2023 22:48:21 -0500 Subject: [PATCH] Sanitize screentip colors Sanitize screentip colors as hexcolor when saving, to prevent possible cases of null values that could break the interaction screentips. Solution provided by SandPoot, in response to an issue posted by BongaTheProto. --- code/modules/client/preferences_savefile.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index c0386e8f45..dbc13ba1cd 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -541,6 +541,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car key_bindings = sanitize_islist(key_bindings, list()) modless_key_bindings = sanitize_islist(modless_key_bindings, list()) favorite_outfits = SANITIZE_LIST(favorite_outfits) + screentip_color = sanitize_hexcolor(screentip_color, 6, 1, initial(screentip_color)) verify_keybindings_valid() // one of these days this will runtime and you'll be glad that i put it in a different proc so no one gets their saves wiped