From 86058af9b37ea6a7fdbed1d36e278d4e609139a3 Mon Sep 17 00:00:00 2001 From: RimiNosha <106692773+RimiNosha@users.noreply.github.com> Date: Tue, 16 Aug 2022 03:43:37 +0100 Subject: [PATCH] [NON-MODULAR] Actually Actually Fix Invisible Languages for Good! (#15647) Actually actually fix invisible languages for good! --- code/modules/client/preferences.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 8d472bb5d3a..46afe5362d3 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -114,8 +114,9 @@ GLOBAL_LIST_EMPTY(preferences_datums) if(loaded_preferences_successfully) if(load_character()) // SKYRAT EDIT START - Sanitizing languages - for(var/datum/language/lang_path as anything in languages) - if(initial(lang_path.secret)) + for(var/lang_path as anything in languages) + var/datum/language/language = GLOB.language_datum_instances[lang_path] + if(!language || language.secret) languages.Remove(lang_path) // SKYRAT EDIT END return // SKYRAT EDIT - Don't remove this. Just don't. Nothing is worth forced random characters.