From 7cc55cbc97c0584fe42328a88eb809d6149a1414 Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Sat, 27 Aug 2022 18:33:42 -0700 Subject: [PATCH] redundant safety check --- code/__HELPERS/unsorted.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 8430547c7e..cb2cfafa53 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -173,7 +173,7 @@ Turf and target are separate in case you want to teleport some distance from a t var/banned = jobban_isbanned(src, "appearance") - if(C && C.prefs.custom_names[role] && !safety && !banned) + if(C?.prefs?.custom_names[role] && !banned) newname = C.prefs.custom_names[role] else while(loop && safety < 5)