From 380eef5a880aa3636c17a701a349d10009905f9b Mon Sep 17 00:00:00 2001 From: Aziz Chynaliev Date: Tue, 6 Aug 2024 20:22:36 +0500 Subject: [PATCH] server: debug generate_code_phrase --- code/__HELPERS/names.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/__HELPERS/names.dm b/code/__HELPERS/names.dm index 0e6d4c5900b..5797e36f5ce 100644 --- a/code/__HELPERS/names.dm +++ b/code/__HELPERS/names.dm @@ -154,6 +154,12 @@ GLOBAL_DATUM(syndicate_code_response_regex, /regex) var/names[] = list() for(var/datum/data/record/t in GLOB.data_core.general)//Picks from crew manifest. + if (!t) + stack_trace("Null record: [t]") + continue + if (!t.fields["name"]) + stack_trace("Nameless record: [t.fields]") + continue names += t.fields["name"] var/maxwords = words//Extra var to check for duplicates.