From daf3dad3284f17465d654a06c8b4efd0a46fc0ab Mon Sep 17 00:00:00 2001 From: Cameron Lennox Date: Mon, 28 Apr 2025 19:05:50 -0400 Subject: [PATCH] Makes sure log_to_dd doesn't fire if the config has not actually loaded yet (#17636) --- code/_helpers/logging.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/_helpers/logging.dm b/code/_helpers/logging.dm index 594f0bfe81..18eed45065 100644 --- a/code/_helpers/logging.dm +++ b/code/_helpers/logging.dm @@ -156,7 +156,7 @@ /proc/log_to_dd(text) to_world_log(text) //this comes before the config check because it can't possibly runtime - if(CONFIG_GET(flag/log_world_output)) + if(config?.loaded && CONFIG_GET(flag/log_world_output)) WRITE_LOG(GLOB.diary, "DD_OUTPUT: [text]") /proc/log_error(text)